Skip to main content
11 events
when toggle format what by license comment
May 15, 2017 at 5:14 comment added Easy2DownVoteHard2Ans @EdwinDalorzo. Thank you for your comment. i have tested with 10.255.255.1 and conncection timeout is working as expected,
May 11, 2017 at 16:41 comment added Edwin Dalorzo @Easy2DownVoteHard2Ans There are two scenarios: 1) the remote server is up but it took longer than connectTimeout to get a connection and 2) the server is down and therefore unreachable. For the former the connectTimeout should work, for latter it wouldn't make sense because your network client already knows is unreachable and it wouldn't make sense to make you wait up to comnectTimeout to tell you so.
May 11, 2017 at 16:14 answer added andreim timeline score: 48
May 11, 2017 at 10:22 comment added Easy2DownVoteHard2Ans @ Vaibs, no i tried with server up with 10 and 5 ms - not working. i tried with server down with 5 sec and 10 sec thrown exception within 1 sec.
May 11, 2017 at 10:19 comment added Vaibs If your service is down why rest templte poll for 10 sec.It will directly throw some exception/error
May 11, 2017 at 10:07 comment added Easy2DownVoteHard2Ans @ Vaibs, even when i try 10 or 5 ms it is not working. i got successful response from external server.
May 11, 2017 at 9:28 comment added Easy2DownVoteHard2Ans @ Vaibs, when external service is up, setReadTimeout is working. when external service is down, setConnectTimeout is not working. that is, getting exception after a second it is not waiting for 10 second which i configure.
May 11, 2017 at 9:14 comment added Vaibs Just tested with your code in my environment. Its working fine.Your service should up to test this. To achieve this ,my suggestion is just minimise the connection timeout value . change to 10ms.
May 11, 2017 at 8:55 comment added Easy2DownVoteHard2Ans @ Vaibs, No. for testing purpose i did not start external web service. Specified time out is not working.
May 11, 2017 at 8:15 comment added Vaibs are you able to connect without configuring timeout?
May 11, 2017 at 7:34 history asked Easy2DownVoteHard2Ans CC BY-SA 3.0