>>I am running on JRE 1.4.2_10 and using HttpUrlConnection class to
>>exchange some XML files with another machine and sometimes I get the
[quoted text clipped - 8 lines]
>>which causes this exception on some hidded socket classes inside
>>HttpUrlConnection?
No. The other end is certainly *not responding* with data, and you need
to investigate that. I'm not aware that any implementation of
HttpURLConnection sets a read timeout other than the user-defined one
@since 1.5.
>>Thanks in advance!
>>Ivan
>
> IIRC, it is OS dependent.
Nope. In every implementation of sockets the default read timeout is
supposed to be infinite.
> In Linux, at least starting with kernel 2.6 ( not
> sure with 2.4 ), you can set TCP keep-alive timeouts and interval
> in /etc/sysctl.conf:
Keepalive has nothing to do with read timeouts.
ivan.andrisek@gmail.com - 11 Aug 2006 14:03 GMT
Hi!
After further investigation, and talking with "the other end" i found
out that the other side has
timeout set to a very low value (1 second) which, in case of slower TCP
connection, caused all the exceptions.
thanks a lot for the tip!
BR
Ivan
> No. The other end is certainly *not responding* with data, and you need
> to investigate that. I'm not aware that any implementation of
> HttpURLConnection sets a read timeout other than the user-defined one
> @since 1.5.