sebb 2004/02/22 11:21:42
Modified: src/protocol/http/org/apache/jmeter/protocol/http/sampler
HTTPSampler.java
Log:
For speed, use getThreadContext() instead of JMeterContextService
Revision Changes Path
1.87 +3 -5
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
Index: HTTPSampler.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -r1.86 -r1.87
--- HTTPSampler.java 22 Feb 2004 14:37:51 -0000 1.86
+++ HTTPSampler.java 22 Feb 2004 19:21:41 -0000 1.87
@@ -54,8 +54,6 @@
import org.apache.jmeter.testelement.property.StringProperty;
import org.apache.jmeter.testelement.property.TestElementProperty;
-import org.apache.jmeter.threads.JMeterContextService;
-
import org.apache.jmeter.util.JMeterUtils;
import org.apache.jmeter.util.SSLManager;
@@ -804,7 +802,7 @@
*/
protected byte[] readResponse(HttpURLConnection conn) throws IOException
{
- byte[] readBuffer= JMeterContextService.getContext().getReadBuffer();
+ byte[] readBuffer= getThreadContext().getReadBuffer();
BufferedInputStream in;
boolean logError=false; // Should we log the error?
try
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]