Ignore I/O exception thrown by #close method. Original exception is more important

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@818595 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2009-09-24 19:17:32 +00:00
parent c246b98766
commit a0341a0a3f
1 changed files with 4 additions and 1 deletions

View File

@ -449,7 +449,10 @@ public class DefaultRequestDirector implements RequestDirector {
} catch (IOException ex) {
this.log.debug("Closing the connection.");
managedConn.close();
try {
managedConn.close();
} catch (IOException ignore) {
}
if (retryHandler.retryRequest(ex, execCount, context)) {
if (this.log.isInfoEnabled()) {
this.log.info("I/O exception ("+ ex.getClass().getName() +