jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1698306 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
Date Fri, 28 Aug 2015 11:21:12 GMT
Author: sebb
Date: Fri Aug 28 11:21:12 2015
New Revision: 1698306

URL: http://svn.apache.org/r1698306
Log:
Inline; avoids resource leak warning (readResponse closes its input)

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

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=1698306&r1=1698305&r2=1698306&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
Fri Aug 28 11:21:12 2015
@@ -349,8 +349,7 @@ public class HTTPHC4Impl extends HTTPHCA
             }
             HttpEntity entity = httpResponse.getEntity();
             if (entity != null) {
-                InputStream instream = entity.getContent();
-                res.setResponseData(readResponse(res, instream, (int) entity.getContentLength()));
+                res.setResponseData(readResponse(res, entity.getContent(), (int) entity.getContentLength()));
             }
             
             res.sampleEnd(); // Done with the sampling proper.



Mime
View raw message