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:
parent
fb2af3f61f
commit
ea0e787fde
|
@ -286,6 +286,12 @@ public class ConnPoolByRoute extends AbstractConnPool {
|
||||||
("Connection pool shut down.");
|
("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:
|
// the cases to check for:
|
||||||
// - have a free connection for that route
|
// - have a free connection for that route
|
||||||
// - allowed to create 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()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Available capacity: " + rospl.getCapacity()
|
LOG.debug("Available capacity: " + rospl.getCapacity()
|
||||||
|
+ " out of " + rospl.getMaxEntries()
|
||||||
+ " [" + route + "][" + state + "]");
|
+ " [" + route + "][" + state + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,6 +430,7 @@ public class ConnPoolByRoute extends AbstractConnPool {
|
||||||
try {
|
try {
|
||||||
boolean done = false;
|
boolean done = false;
|
||||||
while(!done) {
|
while(!done) {
|
||||||
|
|
||||||
entry = rospl.allocEntry(state);
|
entry = rospl.allocEntry(state);
|
||||||
|
|
||||||
if (entry != null) {
|
if (entry != null) {
|
||||||
|
|
Loading…
Reference in New Issue