Hello Oleg, Thanks for answer. Wouldn't it be interesting to add some threshold or delay between each check instead of doing check on each request ?
Regards Philippe On Mon, Dec 9, 2013 at 11:59 AM, Oleg Kalnichevski <ol...@apache.org> wrote: > 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-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > -- Cordialement. Philippe Mouawad.