mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-27 21:29:12 +00:00
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 void releaseConnection(ManagedClientConnection conn) {
|
||||
|
||||
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…
x
Reference in New Issue
Block a user