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 Thu, 01 May 2003 23:21:28 GMT
mbecke      2003/05/01 16:21:28

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpConnection.java
  Log:
  Removed force close in releaseConnection().  This should allow tunneled HTTPS
  connections to be reused in 1.4 JREs when using an instance of HttpClient to
  execute methods.
  
  PR: 19230
  Submitted by: Michael Becke
  Reviewed by: Oleg Kalnichevski
  
  Revision  Changes    Path
  1.63      +6 -9      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.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- HttpConnection.java	1 May 2003 23:12:34 -0000	1.62
  +++ HttpConnection.java	1 May 2003 23:21:27 -0000	1.63
  @@ -1045,11 +1045,7 @@
        */
       public void releaseConnection() {
           LOG.trace("enter HttpConnection.releaseConnection()");
  -        if (isProxied() && isSecure()) {
  -            // we do not have a method for reliably reusing tunneled HTTPS
  -            // connections so we want to close them after one use
  -            close();
  -        }
  +
           // we are assuming that the connection will only be released once used
           used = true;
           if (httpConnectionManager != null) {
  @@ -1101,6 +1097,7 @@
               }
           }
           isOpen = false;
  +        used = false;
           tunnelEstablished = false;
           usingSecureSocket = false;
       }
  
  
  

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