"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionManager.java" between
httpcomponents-client-5.0.2-src.tar.gz and httpcomponents-client-5.0.3-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

PoolingHttpClientConnectionManager.java  (httpcomponents-client-5.0.2-src):PoolingHttpClientConnectionManager.java  (httpcomponents-client-5.0.3-src)
skipping to change at line 99 skipping to change at line 99
* a connection from the pool rather than creating a new connection. * a connection from the pool rather than creating a new connection.
* <p> * <p>
* {@code ClientConnectionPoolManager} maintains a maximum limit of connection * {@code ClientConnectionPoolManager} maintains a maximum limit of connection
* on a per route basis and in total. Connection limits, however, can be adjuste d * on a per route basis and in total. Connection limits, however, can be adjuste d
* using {@link ConnPoolControl} methods. * using {@link ConnPoolControl} methods.
* <p> * <p>
* Total time to live (TTL) set at construction time defines maximum life span * Total time to live (TTL) set at construction time defines maximum life span
* of persistent connections regardless of their expiration setting. No persiste nt * of persistent connections regardless of their expiration setting. No persiste nt
* connection will be re-used past its TTL value. * connection will be re-used past its TTL value.
* <p> * <p>
* The handling of stale connections was changed in version 4.4. * Please note in contrast to 4.x no stale check is employed by default.
* Previously, the code would check every connection by default before re-using * @see #setValidateAfterInactivity(TimeValue)
it.
* The code now only checks the connection if the elapsed time since
* the last use of the connection exceeds the timeout that has been set.
* The default timeout is set to 5000ms.
* *
* @since 4.3 * @since 4.3
*/ */
@Contract(threading = ThreadingBehavior.SAFE_CONDITIONAL) @Contract(threading = ThreadingBehavior.SAFE_CONDITIONAL)
public class PoolingHttpClientConnectionManager public class PoolingHttpClientConnectionManager
implements HttpClientConnectionManager, ConnPoolControl<HttpRoute> { implements HttpClientConnectionManager, ConnPoolControl<HttpRoute> {
private static final Logger LOG = LoggerFactory.getLogger(PoolingHttpClientC onnectionManager.class); private static final Logger LOG = LoggerFactory.getLogger(PoolingHttpClientC onnectionManager.class);
public static final int DEFAULT_MAX_TOTAL_CONNECTIONS = 25; public static final int DEFAULT_MAX_TOTAL_CONNECTIONS = 25;
 End of changes. 1 change blocks. 
6 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)