hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ossf...@dubioso.net>
Subject Re: When exactly does a socket timeout get triggered?
Date Sat, 16 Jun 2007 10:50:53 GMT
Hello Nathan,

> When exactly does a socket timeout get triggered?
> Is it when the SO_TIMEOUT time has been reached and the first byte of data 
> has not been received?

Yes. Socket timeouts are per read operation. If you receive a
response, even with only a single byte of data, before the
timeout hits, then the read operation succeeds. If you want
to read more data, you have to call another read operation,
which will start a new timeout interval. This is not specific
to HTTP, it's general socket behavior:

hope that helps,

To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org

View raw message