Added debug logs about ConnPoolByRoute internal state

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672853 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2008-06-30 18:13:07 +00:00
parent fb2af3f61f
commit ea0e787fde
1 changed files with 8 additions and 0 deletions

View File

@ -286,6 +286,12 @@ public class ConnPoolByRoute extends AbstractConnPool {
("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 @@ public class ConnPoolByRoute extends AbstractConnPool {
if (LOG.isDebugEnabled()) {
LOG.debug("Available capacity: " + rospl.getCapacity()
+ " out of " + rospl.getMaxEntries()
+ " [" + route + "][" + state + "]");
}
@ -423,6 +430,7 @@ public class ConnPoolByRoute extends AbstractConnPool {
try {
boolean done = false;
while(!done) {
entry = rospl.allocEntry(state);
if (entry != null) {