hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: HttpClient 4.2.6 : ManagedClientConnectionImpl way of checking stale connection and Performances
Date Mon, 09 Dec 2013 10:59:43 GMT
On Sun, 2013-12-08 at 21:32 +0100, Philippe Mouawad wrote:
> Hello,
> Profiling JMeter, I noticed an important number of SocketTimeoutException
> being triggered without any impact on response status.
> 
> I investigated it a bit deeper and find out it affected only HttpClient
> implementations.
> Looking a bit deeper, it is due to connection stale check which is enabled
> by default.
> This check sets a timeout to 1ms , see :
> - org.apache.http.impl.io.SocketInputBuffer#isDataAvailable
> - org.apache.http.impl.AbstractHttpClientConnection#isStale
> 
> 
> Is this the only and best way to check for stale connection ?
> 
> 
> Regards
> Philippe

Philippe

I personally do not know of a different (better) way of finding out
whether or not a blocking connection is still valid.

Oleg  


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message