You want to set the SO_TIMEOUT. This can be done with HttpClient.setTimeout().

Mike

Michael Mattox wrote:
I'm using HttpMethod.execute(state, connection) to execute a GET.  However
with Amazon.com it seems to hang occasionally.  Is it possible to set a
timeout for the execute method?  I had this same problem with SUN's
HttpURLConnection class.  It was blocking on a socket read.  This is one of
the reasons I switched to the Apache HttpClient and now I'm suprised to see
the same behavior!

Thanks,
Michael



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



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



Reply via email to