On Thu, 2011-08-25 at 13:55 +0200, Russell Brown wrote: > Hi, > We still have some code running on hc3.1. We are migrating to 4.1 in every > case but have this outstanding legacy code that needs some tweaking. > > Is there a way to set the idle connection timeout without changing the > SO_TIMEOUT/connection acquire timeout/connection timeout etc? > > I suppose the question is which parameter sets the idle connection timeout? > We want to makes sure that connections in out pool don't live longer 10 > seconds, but we need our socket read timeout to stay at 30 seconds (for > example) > > Thanks in advance > > Russell
Russell You need to pro-actively evict idle connections from the connection pool pretty much the same way as with HttpClient 4.x http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d4e659 http://hc.apache.org/httpclient-legacy/apidocs/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.html#closeIdleConnections%28long%29 Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
