From 899c7c80461305f49b2eef9897ee804006167bae Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Mon, 23 Jun 2014 18:18:03 +0000 Subject: [PATCH] More doc on connection checking Fix bug in Javadoc - default is now false. git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604897 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/http/client/config/RequestConfig.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java b/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java index f6dd0a58d..7a171b50c 100644 --- a/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java +++ b/httpclient/src/main/java/org/apache/http/client/config/RequestConfig.java @@ -31,7 +31,14 @@ import java.util.Collection; import org.apache.http.HttpHost; +import org.apache.http.annotation.Immutable; +/** + * Immutable class encapsulating request configuration items. + * The default setting for stale connection checking changed + * to false, and the feature was deprecated starting with version 4.4. + */ +@Immutable public class RequestConfig implements Cloneable { public static final RequestConfig DEFAULT = new Builder().build(); @@ -140,7 +147,7 @@ public InetAddress getLocalAddress() { * should be used only when appropriate. For performance critical * operations this check should be disabled. *

- * Default: true + * Default: false since 4.4 * * @deprecated (4.4) Use {@link * org.apache.http.impl.conn.PoolingHttpClientConnectionManager#getValidateAfterInactivity()}