You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2017/07/13 19:45:12 UTC

svn commit: r1801873 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPJavaImpl.java

Author: fschumacher
Date: Thu Jul 13 19:45:12 2017
New Revision: 1801873

URL: http://svn.apache.org/viewvc?rev=1801873&view=rev
Log:
Sample may have "ended" already. don't call sampleEnd twice in that case.

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

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPJavaImpl.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPJavaImpl.java?rev=1801873&r1=1801872&r2=1801873&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPJavaImpl.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPJavaImpl.java Thu Jul 13 19:45:12 2017
@@ -610,7 +610,9 @@ public class HTTPJavaImpl extends HTTPAb
             log.debug("End : sample");
             return res;
         } catch (IOException e) {
-            res.sampleEnd();
+            if (res.getEndTime() == 0) {
+                res.sampleEnd();
+            }
             savedConn = null; // we don't want interrupt to try disconnection again
             // We don't want to continue using this connection, even if KeepAlive is set
             if (conn != null) { // May not exist