commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient RequestOutputStream.java
Date Mon, 05 Aug 2002 14:46:06 GMT
dion        2002/08/05 07:46:05

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        RequestOutputStream.java
  Log:
  This commit brought to you by the holy grail of consistency
  
  Revision  Changes    Path
  1.14      +9 -6      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/RequestOutputStream.java
  
  Index: RequestOutputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/RequestOutputStream.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- RequestOutputStream.java	5 Aug 2002 13:14:22 -0000	1.13
  +++ RequestOutputStream.java	5 Aug 2002 14:46:05 -0000	1.14
  @@ -286,13 +286,16 @@
                       stream.write(ENDCHUNK, 0, ENDCHUNK.length);
                       wireLog.debug(">> byte 0 \\r\\n\\r\\n (final chunk)");
                   }
  -                super.close();
               } catch (IOException ioe) {
                   log.debug("Unexpected exception caught when closing output "
                       + " stream", ioe);
                   throw ioe;
               } finally {
  -                this.closed = true;
  +                // regardless of what happens, mark the stream as closed.
  +                // if there are errors closing it, there's not much we can do
  +                // about it
  +                closed = true;
  +                super.close();
               }
           }
   
  
  
  

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


Mime
View raw message