hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r225620 - /jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
Date Wed, 27 Jul 2005 20:37:08 GMT
Author: olegk
Date: Wed Jul 27 13:37:05 2005
New Revision: 225620

URL: http://svn.apache.org/viewcvs?rev=225620&view=rev
Log:
Always close the socket even if outputShutdown or inputShutdown fail with an IOException

Modified:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java?rev=225620&r1=225619&r2=225620&view=diff
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/AbstractHttpConnection.java
Wed Jul 27 13:37:05 2005
@@ -140,10 +140,16 @@
         if (tmpsocket != null) {
             if (!tmpsocket.isClosed()) {
                 if (!tmpsocket.isOutputShutdown()) {
-                    tmpsocket.shutdownOutput();
+                	try {
+                        tmpsocket.shutdownOutput();
+                	} catch (IOException ignore) {
+                	}
                 }
                 if (!tmpsocket.isInputShutdown()) {
-                    tmpsocket.shutdownInput();
+                	try {
+                        tmpsocket.shutdownInput();
+                	} catch (IOException ignore) {
+                	}
                 }
                 tmpsocket.close();
             }



Mime
View raw message