commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom van den Berge <>
Subject [HttpClient] Setting timeouts
Date Wed, 11 Dec 2002 13:03:40 GMT

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.

Tom van den Berge

View raw message