Author: fschumacher
Date: Thu Feb 18 20:41:55 2016
New Revision: 1731139

URL: http://svn.apache.org/viewvc?rev=1731139&view=rev
Log:
Use SystemDefaultDnsResolver singleton. Contributed by Benoit Wiart.
This closes #130.

Bugzilla Id: 59028

Modified:
    
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
    jmeter/trunk/xdocs/changes.xml

Modified: 
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java?rev=1731139&r1=1731138&r2=1731139&view=diff
==============================================================================
--- 
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
 (original)
+++ 
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
 Thu Feb 18 20:41:55 2016
@@ -700,7 +700,7 @@ public class HTTPHC4Impl extends HTTPHCA
 
             DnsResolver resolver = this.testElement.getDNSResolver();
             if (resolver == null) {
-                resolver = new SystemDefaultDnsResolver();
+                resolver = SystemDefaultDnsResolver.INSTANCE;
             }
             ClientConnectionManager connManager = new 
MeasuringConnectionManager(createSchemeRegistry(), resolver);
             

Modified: jmeter/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1731139&r1=1731138&r2=1731139&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Thu Feb 18 20:41:55 2016
@@ -112,6 +112,7 @@ Summary
     <li><bug>58099</bug>Performance : Lazily initialize HttpClient SSL Context 
to avoid its initialization even for HTTP only scenarios</li>
     <li><bug>57577</bug>HttpSampler : Retrieve All Embedded Resources, add 
property "httpsampler.embedded_resources_use_md5" to only compute md5 and not 
keep response data. Contributed by Benoit Wiart (benoit dot wiart at 
gmail.com)</li>
     <li><bug>59023</bug>HttpSampler UI : rework the embedded resources labels 
and change default number of parallel downloads to 6. Contributed by Benoit 
Wiart (benoit dot wiart at gmail.com)</li>
+    <li><bug>59028</bug>Use SystemDefaultDnsResolver singleton. Contributed by 
Benoit Wiart (benoit dot wiart at gmail.com)</li>
 </ul>
 
 <h3>Other samplers</h3>


Reply via email to