JETTY-1423 force connection to be closed returned

This commit is contained in:
Greg Wilkins 2011-09-22 09:22:27 +10:00
parent 0bd7519a2e
commit 633f3b1588
1 changed files with 11 additions and 0 deletions

View File

@ -97,6 +97,17 @@ class SocketConnector extends AbstractLifeCycle implements HttpClient.Connector
destination.onException(e);
}
}
finally
{
try
{
destination.returnConnection(connection,true);
}
catch (IOException e)
{
LOG.debug(e);
}
}
}
});