Author: sebb
Date: Wed Apr 23 09:39:31 2008
New Revision: 650937

URL: http://svn.apache.org/viewvc?rev=650937&view=rev
Log:
Log HttpClient re-use

Modified:
    
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java?rev=650937&r1=650936&r2=650937&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
 Wed Apr 23 09:39:31 2008
@@ -541,6 +541,9 @@
                if ( httpClient == null )
                {
                        httpClient = new HttpClient(new 
SimpleHttpConnectionManager());
+            if (log.isDebugEnabled()) {
+                log.debug("Created new HttpClient: 
@"+System.identityHashCode(httpClient));
+            }
                        httpClient.setHostConfiguration(hc);
                        map.put(hc, httpClient);
             // These items don't change, so only need to be done once
@@ -553,6 +556,10 @@
                 }
             }
 
+               } else {
+            if (log.isDebugEnabled()) {
+                log.debug("Reusing the HttpClient: 
@"+System.identityHashCode(httpClient));
+            }
                }
 
                // Allow HttpClient to handle the redirects:



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to