You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2008/04/23 18:39:37 UTC
svn commit: r650937 -
/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
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: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org