Manikandan Subramanian created HTTPCLIENT-1729: --------------------------------------------------
Summary: Evicting Stale connections from the connection pool Key: HTTPCLIENT-1729 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1729 Project: HttpComponents HttpClient Issue Type: Bug Affects Versions: 4.5.2 Reporter: Manikandan Subramanian Priority: Minor This is not a bug. But more of a guidance needed here. The below documentation suggests https://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html to use a separate monitor thread that calls closeExpiredConnections() method for stale connection handling. Is this still applicable for 4.5.2 version as well ? I am looking at source code PoolingHttpClientConnectionManager#closeExpiredConnections which in turn calls the pool#closeExpired. The closeExpired method checks only the expiration of the connections. However there seems to be no check on whether the connection is stale. Should we still handle stale connections checks when using Apache HttpClient 4.5 ? What is the guidance here ? Minor possible documentation issue http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.html The above java doc claims that the default timeout that is used before a stale connection check is performed is 5000 ms. However the source code is setting the value to 2000ms. Please correct me if I am wrong. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org