diff --git a/src/protocol/http/org/apache/http/impl/conn/JMeterPoolingClientConnectionManager.java b/src/protocol/http/org/apache/http/impl/conn/JMeterPoolingClientConnectionManager.java index 391460af37..bc1394d944 100644 --- a/src/protocol/http/org/apache/http/impl/conn/JMeterPoolingClientConnectionManager.java +++ b/src/protocol/http/org/apache/http/impl/conn/JMeterPoolingClientConnectionManager.java @@ -106,7 +106,16 @@ public class JMeterPoolingClientConnectionManager implements ClientConnectionMan this.schemeRegistry = schemeRegistry; this.dnsResolver = dnsResolver; this.operator = createConnectionOperator(schemeRegistry); - this.pool = new HttpConnPool(this.log, this.operator, 2, 20, timeToLive, tunit); + this.pool = new HttpConnPool(this.log, this.operator, 2, 20, timeToLive, tunit) { + /** + * @see org.apache.http.pool.AbstractConnPool#validate(org.apache.http.pool.PoolEntry) + */ + @Override + protected boolean validate(HttpPoolEntry entry) { + return !entry.getConnection().isStale(); + } + + }; pool.setValidateAfterInactivity(validateAfterInactivity); } diff --git a/xdocs/changes.xml b/xdocs/changes.xml index 1f40482efc..e3d794e522 100644 --- a/xdocs/changes.xml +++ b/xdocs/changes.xml @@ -204,6 +204,7 @@ JMeter now requires Java 8. Ensure you use most up to date version.
  • 60575HTTP GET Requests could have a content-type header without a body.
  • 60643HTTP(S) Test Script Recorder doesn't correctly handle restart or start after stop. Contributed by Ubik Load Pack (support at ubikloadpack.com)
  • 60652PUT might leak file descriptors.
  • +
  • 60689httpclient4.validate_after_inactivity has no impact leading to usage of potentially stale/closed connections
  • Other Samplers