mirror of https://github.com/apache/jmeter.git
Bug 60689 - "httpclient4.validate_after_inactivity" has no impact leading to usage of potentially stale/closed connections
Bugzilla Id: 60689
git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1781673 13f79535-47bb-0310-9956-ffa450edef68
Former-commit-id: ed2dc1c609
This commit is contained in:
parent
77e3a9c270
commit
13556fda47
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -204,6 +204,7 @@ JMeter now requires Java 8. Ensure you use most up to date version.
|
|||
<li><bug>60575</bug>HTTP GET Requests could have a content-type header without a body.</li>
|
||||
<li><bug>60643</bug>HTTP(S) Test Script Recorder doesn't correctly handle restart or start after stop. Contributed by Ubik Load Pack (support at ubikloadpack.com)</li>
|
||||
<li><bug>60652</bug>PUT might leak file descriptors.</li>
|
||||
<li><bug>60689</bug><code>httpclient4.validate_after_inactivity</code> has no impact leading to usage of potentially stale/closed connections</li>
|
||||
</ul>
|
||||
|
||||
<h3>Other Samplers</h3>
|
||||
|
|
|
|||
Loading…
Reference in New Issue