You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mb...@apache.org on 2003/10/09 01:34:16 UTC

cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodDirector.java

mbecke      2003/10/08 16:34:16

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodDirector.java
  Log:
  Connection is now released when a recoverable exception occurs.
  
  PR: 23663
  Submitted by: Michael Becke
  Reviewed by: Oleg Kalnichevski
  
  Revision  Changes    Path
  1.5       +5 -3      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodDirector.java
  
  Index: HttpMethodDirector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodDirector.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HttpMethodDirector.java	17 Sep 2003 03:53:25 -0000	1.4
  +++ HttpMethodDirector.java	8 Oct 2003 23:34:16 -0000	1.5
  @@ -329,6 +329,8 @@
                           "Recoverable exception caught but MethodRetryHandler.retryMethod() "
                           + "returned false, rethrowing exception"
                       );
  +                    // this connection can no longer be used, it has been closed
  +                    releaseConnection = true;
                       throw httpre;
                   }
               }
  
  
  

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