mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-28 21:59:09 +00:00
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 @@ protected BasicPoolEntry getEntryBlocking(
|
||||
("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 @@ protected BasicPoolEntry getEntryBlocking(
|
||||
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Available capacity: " + rospl.getCapacity()
|
||||
+ " out of " + rospl.getMaxEntries()
|
||||
+ " [" + route + "][" + state + "]");
|
||||
}
|
||||
|
||||
@ -423,6 +430,7 @@ protected BasicPoolEntry getFreeEntry(RouteSpecificPool rospl, Object state) {
|
||||
try {
|
||||
boolean done = false;
|
||||
while(!done) {
|
||||
|
||||
entry = rospl.allocEntry(state);
|
||||
|
||||
if (entry != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user