commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbe...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodBase.java
Date Wed, 08 Oct 2003 23:29:55 GMT
mbecke      2003/10/08 16:29:55

  Modified:    httpclient/src/java/org/apache/commons/httpclient Tag:
                        HTTPCLIENT_2_0_BRANCH HttpMethodBase.java
  Log:
  Connection is now released when a recoverable eception occurs.
  
  PR: 23663
  Submitted by: Michael Becke
  Reviewed by: Oleg Kalnichevski
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.159.2.11 +6 -4      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
  
  Index: HttpMethodBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
  retrieving revision 1.159.2.10
  retrieving revision 1.159.2.11
  diff -u -r1.159.2.10 -r1.159.2.11
  --- HttpMethodBase.java	4 Oct 2003 02:31:26 -0000	1.159.2.10
  +++ HttpMethodBase.java	8 Oct 2003 23:29:55 -0000	1.159.2.11
  @@ -2644,6 +2644,8 @@
                           "Recoverable exception caught but MethodRetryHandler.retryMethod()
"
                           + "returned false, rethrowing exception"
                       );
  +                    // this connection can no longer be used, it has been closed
  +                    doneWithConnection = true;
                       throw httpre;
                   }
               }
  
  
  

---------------------------------------------------------------------
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