Index: java/org/apache/commons/httpclient/HttpConnection.java =================================================================== RCS file: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java,v retrieving revision 1.60 diff -u -r1.60 HttpConnection.java --- java/org/apache/commons/httpclient/HttpConnection.java 27 Apr 2003 19:43:41 -0000 1.60 +++ java/org/apache/commons/httpclient/HttpConnection.java 28 Apr 2003 19:58:18 -0000 @@ -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) { @@ -1098,6 +1094,7 @@ socket = null; } isOpen = false; + used = false; tunnelEstablished = false; usingSecureSocket = false; }