hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r627464 - /httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java
Date Wed, 13 Feb 2008 15:20:56 GMT
Author: olegk
Date: Wed Feb 13 07:20:53 2008
New Revision: 627464

URL: http://svn.apache.org/viewvc?rev=627464&view=rev
Log:
#isStale to return true if the connection has been aborted

Modified:
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java?rev=627464&r1=627463&r2=627464&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java
Wed Feb 13 07:20:53 2008
@@ -165,6 +165,8 @@
 
     // non-javadoc, see interface HttpConnection
     public boolean isStale() {
+        if (aborted)
+            return true;
         OperatedClientConnection conn = getWrappedConnection();
         if (conn == null)
             return true;



Mime
View raw message