Hi Roland,
Could u tell me how to extract the time of arrival of the first byte.

On 6/16/07, Roland Weber <[EMAIL PROTECTED]> wrote:

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:

http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#setSoTimeout(int)

hope that helps,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to