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 Sat, 30 Aug 2003 20:15:17 GMT
mbecke      2003/08/30 13:15:17

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        MultiThreadedHttpConnectionManager.java
  Log:
  Added debugging for connection reclaiming.
  
  Revision  Changes    Path
  1.23      +9 -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.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- MultiThreadedHttpConnectionManager.java	31 Jul 2003 02:47:30 -0000	1.22
  +++ MultiThreadedHttpConnectionManager.java	30 Aug 2003 20:15:17 -0000	1.23
  @@ -724,7 +724,12 @@
                   if (referenceToHostConfig.containsKey(ref)) {
                       HostConfiguration config = (HostConfiguration) referenceToHostConfig.get(ref);
                       referenceToHostConfig.remove(ref);
  -
  +                    
  +                    if (LOG.isDebugEnabled()) {
  +                        LOG.debug(
  +                            "Connection recalimed by garbage collector, hostConfig=" +
config);
  +                    }
  +                    
                       HostConnectionPool hostPool = connectionPool.getHostPool(config);
                       hostPool.numConnections--;
   
  
  
  

Mime
View raw message