Author: sebb
Date: Mon Apr 20 13:17:56 2009
New Revision: 766687

URL: http://svn.apache.org/viewvc?rev=766687&view=rev
Log:
Need to keep savedConn while reading response

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

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java?rev=766687&r1=766686&r2=766687&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
 Mon Apr 20 13:17:56 2009
@@ -453,8 +453,6 @@
                 } catch (IOException e) {
                     log.debug("Connection failed, giving up");
                     throw e;
-                } finally {
-                    savedConn = null;                    
                 }
             }
             if (retry > MAX_CONN_RETRIES) {
@@ -473,6 +471,8 @@
             // Request sent. Now get the response:
             byte[] responseData = readResponse(conn, res);
 
+            savedConn = null;
+
             res.sampleEnd();
             // Done with the sampling proper.
 
@@ -553,6 +553,7 @@
             // but indicates we're through with it. The JVM should close
             // it when necessary.
             disconnect(conn); // Disconnect unless using KeepAlive
+            savedConn = null;
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to