hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r508807 - /jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/ThreadSafeClientConnManager.java
Date Sat, 17 Feb 2007 20:49:28 GMT
Author: rolandw
Date: Sat Feb 17 12:49:27 2007
New Revision: 508807

URL: http://svn.apache.org/viewvc?view=rev&rev=508807
Log:
don't shut down unless open

Modified:
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/ThreadSafeClientConnManager.java

Modified: jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/ThreadSafeClientConnManager.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/ThreadSafeClientConnManager.java?view=diff&rev=508807&r1=508806&r2=508807
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/ThreadSafeClientConnManager.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/impl/conn/ThreadSafeClientConnManager.java
Sat Feb 17 12:49:27 2007
@@ -362,9 +362,10 @@
 
         try {
             // make sure that the response has been read completely
-            if (!hca.isMarkedReusable()) {
+            if (hca.isOpen() && !hca.isMarkedReusable()) {
                 if (LOG.isDebugEnabled()) {
-                    LOG.debug("Released connection not marked reusable.");
+                    LOG.debug
+                        ("Released connection open but not marked reusable.");
                 }
                 // In MTHCM, method releasePoolEntry below would call
                 // SimpleHttpConnectionManager.finishLastResponse(conn);



Mime
View raw message