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, 03 Sep 2003 02:21:25 GMT
mbecke      2003/09/02 19:21:25

  Modified:    httpclient/src/java/org/apache/commons/httpclient Tag:
                        HTTPCLIENT_2_0_BRANCH HttpMethodBase.java
  Log:
  Fixes connection release when responseStream.close() throws an exception.
  PR: 22841
  Submitted by: Michael Becke
  Reviewed by: Ortwin Glck
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.159.2.9 +6 -5      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.8
  retrieving revision 1.159.2.9
  diff -u -r1.159.2.8 -r1.159.2.9
  --- HttpMethodBase.java	12 Aug 2003 18:45:03 -0000	1.159.2.8
  +++ HttpMethodBase.java	3 Sep 2003 02:21:24 -0000	1.159.2.9
  @@ -1322,7 +1322,8 @@
                   // FYI - this may indirectly invoke responseBodyConsumed.
                   responseStream.close();
               } catch (IOException e) {
  -                // attempting cleanup, don't care about exception.
  +                // the connection may not have been released, let's make sure
  +                ensureConnectionRelease();
               }
           } else {
               // Make sure the connection has been released. If the response 
  
  
  

Mime
View raw message