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:
parent
c246b98766
commit
a0341a0a3f
|
@ -449,7 +449,10 @@ public class DefaultRequestDirector implements RequestDirector {
|
|||
|
||||
} catch (IOException ex) {
|
||||
this.log.debug("Closing the connection.");
|
||||
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() +
|
||||
|
|
Loading…
Reference in New Issue