hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r672853 - /httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java
Date Mon, 30 Jun 2008 18:13:08 GMT
Author: olegk
Date: Mon Jun 30 11:13:07 2008
New Revision: 672853

URL: http://svn.apache.org/viewvc?rev=672853&view=rev
Log:
Added debug logs about ConnPoolByRoute internal state

Modified:
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java?rev=672853&r1=672852&r2=672853&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/tsccm/ConnPoolByRoute.java
Mon Jun 30 11:13:07 2008
@@ -286,6 +286,12 @@
                         ("Connection pool shut down.");
                 }
 
+                if (LOG.isDebugEnabled()) {
+                    LOG.debug("Total connections kept alive: " + freeConnections.size());

+                    LOG.debug("Total issued connections: " + issuedConnections.size()); 
+                    LOG.debug("Total allocated connection: " + numConnections + " out of
" + maxTotalConnections);
+                }
+                
                 // the cases to check for:
                 // - have a free connection for that route
                 // - allowed to create a free connection for that route
@@ -301,6 +307,7 @@
                 
                 if (LOG.isDebugEnabled()) {
                     LOG.debug("Available capacity: " + rospl.getCapacity() 
+                            + " out of " + rospl.getMaxEntries()
                             + " [" + route + "][" + state + "]");
                 }
                 
@@ -423,6 +430,7 @@
         try {
             boolean done = false;
             while(!done) {
+
                 entry = rospl.allocEntry(state);
     
                 if (entry != null) {



Mime
View raw message