HTTP :connect timeout and read timeout for URLStreamHandler with SAAJ working for windows but not working on linux sytem
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a beginner when it comes to HTTP connections. Currently i'm working with SAAJ api to have my soap based client, where to handle timeouts i ended up using URLStreamHandler for HTTP connection properties with the endpoints. Problem is that this timeout works for my windows based system, however it isn't working for the Linux server it is going to go live on. below is the code for fetching endpoint with set properties. It is a HTTP POST connection. URL endpoint = new URL (null, url, new URLStreamHandler () { protected URLConnection