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:
parent
1c10f5e392
commit
0eb8e5cf27
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue