Originally, HC4 used to ping the connection on every re-use. This was quite expensive. Now it only does so if it has been idle for a while; I think this is the timeout it uses.
If so, it should be set to the keep alive timeout that would be sent by the server (or a bit less). On 7 April 2015 at 21:26, Philippe Mouawad <[email protected]> wrote: > Hello, > httpclient4.idletimeout was introduced in 2.12 to handle servers who do not > send Keep-Alive header. > > This value is returned as part of implementation of : > http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/DefaultConnectionKeepAliveStrategy.html#getKeepAliveDuration%28org.apache.http.HttpResponse,%20org.apache.http.protocol.HttpContext%29 > > > I was wondering what should be the ideal value for such a parameter ? > Is it related to Apache Httpd KeepAliveTimeout or is it completely > unrelated ? > > > Regards > Philippe
