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 MultiThreadedHttpConnectionManager.java
Date Fri, 26 Sep 2003 02:44:18 GMT
mbecke      2003/09/25 19:44:18

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        MultiThreadedHttpConnectionManager.java
  Log:
  Fixes connection release problem.
  PR: 22800
  Submitted by: Michael Becke
  
  Revision  Changes    Path
  1.25      +4 -4      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.java
  
  Index: MultiThreadedHttpConnectionManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- MultiThreadedHttpConnectionManager.java	1 Sep 2003 18:06:55 -0000	1.24
  +++ MultiThreadedHttpConnectionManager.java	26 Sep 2003 02:44:18 -0000	1.25
  @@ -996,7 +996,7 @@
           }
   
           public void releaseConnection() {
  -            if (hasConnection()) {
  +            if (!isLocked() && hasConnection()) {
                   HttpConnection wrappedConnection = this.wrappedConnection;
                   this.wrappedConnection = null;
                   wrappedConnection.releaseConnection();
  
  
  

Mime
View raw message