don't shut down unless open

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@508807 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roland Weber 2007-02-17 20:49:27 +00:00
parent 1c10f5e392
commit 0eb8e5cf27
1 changed files with 3 additions and 2 deletions

View File

@ -362,9 +362,10 @@ public class ThreadSafeClientConnManager
try {
// make sure that the response has been read completely
if (!hca.isMarkedReusable()) {
if (hca.isOpen() && !hca.isMarkedReusable()) {
if (LOG.isDebugEnabled()) {
LOG.debug("Released connection not marked reusable.");
LOG.debug
("Released connection open but not marked reusable.");
}
// In MTHCM, method releasePoolEntry below would call
// SimpleHttpConnectionManager.finishLastResponse(conn);