commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: [HttpClient] Timeout appears to be twice of requested
Date Thu, 03 Aug 2006 18:58:05 GMT
On Thu, 2006-08-03 at 11:46 -0700, lpcarmed wrote:
> In my test scenario the first read operation is blocked. The
> java.net.SocketTimeoutException only came after 2x of the timeout. I'm using
> a slow responding http server, that pumps out the headers and the beginning
> of the response fast, but stalls before reaching the full content length. 
> 
> Is it possible HttpcClient swallows one java.net.SocketTimeoutException and
> retries the read operation?
> 
> 

Depends on your HttpMethodRetryHandler. The default retry handler will
not retry requests if java.net.SocketTimeoutException is thrown

Oleg


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


Mime
View raw message