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 HttpConnection.java
Date Wed, 07 May 2003 03:30:37 GMT
mbecke      2003/05/06 20:30:37

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpConnection.java
  Log:
  Fixed problem with used being set to false by close().
  
  PR: 19494
  Submitted by: Bin Chen
  
  Revision  Changes    Path
  1.64      +7 -5      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java
  
  Index: HttpConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- HttpConnection.java	1 May 2003 23:21:27 -0000	1.63
  +++ HttpConnection.java	7 May 2003 03:30:36 -0000	1.64
  @@ -1232,8 +1232,10 @@
            * @return the exception to be thrown
            */
           private IOException handleException(IOException ioe) {
  +            // keep the original value of used, as it will be set to false by close().
  +            boolean tempUsed = used;
               HttpConnection.this.close();
  -            if (used) {
  +            if (tempUsed) {
                   LOG.debug(
                       "Output exception occurred on a used connection.  Will treat as recoverable.",

                       ioe
  
  
  

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