#isStale to return true if the connection has been aborted

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@627464 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2008-02-13 15:20:53 +00:00
parent 203da55be6
commit d720162806
1 changed files with 2 additions and 0 deletions

View File

@ -165,6 +165,8 @@ public abstract class AbstractClientConnAdapter
// non-javadoc, see interface HttpConnection
public boolean isStale() {
if (aborted)
return true;
OperatedClientConnection conn = getWrappedConnection();
if (conn == null)
return true;