commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r291689 - /jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java
Date Mon, 26 Sep 2005 17:44:51 GMT
Author: olegk
Date: Mon Sep 26 10:44:45 2005
New Revision: 291689

URL: http://svn.apache.org/viewcvs?rev=291689&view=rev
Log:
PR #36791 (HttpConnection isOpen flag concurrency problem)

Contributed by Jean-Marie White <jmwhite5 at yahoo.com>
Reviewed by Oleg Kalnichevski & Michael Becke

Modified:
    jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java

Modified: jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java?rev=291689&r1=291688&r2=291689&view=diff
==============================================================================
--- jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java
(original)
+++ jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/HttpConnection.java
Mon Sep 26 10:44:45 2005
@@ -1211,6 +1211,8 @@
     protected void closeSocketAndStreams() {
         LOG.trace("enter HttpConnection.closeSockedAndStreams()");
 
+        isOpen = false;
+        
         // no longer care about previous responses...
         lastResponseInputStream = null;
 
@@ -1246,7 +1248,7 @@
                 // ignored
             }
         }
-        isOpen = false;
+        
         tunnelEstablished = false;
         usingSecureSocket = false;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message