You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Tom van den Berge <to...@bibit.com> on 2002/12/11 14:03:40 UTC

[HttpClient] Setting timeouts

Hi,

How can I set the timeout on a http connection? The underlying socket 
connection has a timeout value (setSoTimeout), but I cannot find any way 
of (re)setting this value in the HttpClient API.

Even more, since java 1.4, the Socket.connect method has an additional 
timeout parameter, that is used the time out the connection 
(setSoTimeout only times out the reading of the response, after a 
connection has been established). It would be very nice to be able to 
set this timeout in the HttpClient API, too.


Cheers,
Tom van den Berge