hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r818595 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java
Date Thu, 24 Sep 2009 19:17:35 GMT
Author: olegk
Date: Thu Sep 24 19:17:32 2009
New Revision: 818595

URL: http://svn.apache.org/viewvc?rev=818595&view=rev
Log:
Ignore I/O exception thrown by #close method. Original exception is more important

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java?rev=818595&r1=818594&r2=818595&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java
Thu Sep 24 19:17:32 2009
@@ -449,7 +449,10 @@
                         
                     } 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()
+ 



Mime
View raw message