Index: C:/Documents and Settings/Ortwin/My Documents/code/HttpClient-3.01/src/java/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.java =================================================================== --- C:/Documents and Settings/Ortwin/My Documents/code/HttpClient-3.01/src/java/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.java (revision 496248) +++ C:/Documents and Settings/Ortwin/My Documents/code/HttpClient-3.01/src/java/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.java (working copy) @@ -866,6 +866,7 @@ hostPool.freeConnections.remove(connection); hostPool.numConnections--; numConnections--; + if (hostPool.numConnections == 0) mapHosts.remove(connectionConfiguration); // remove the connection from the timeout handler idleConnectionHandler.remove(connection);