Author: zoltan
Date: 2008-02-21 06:04:49 -0500 (Thu, 21 Feb 2008)
New Revision: 96331
Modified:
trunk/mcs/class/System/System.Net/ChangeLog
trunk/mcs/class/System/System.Net/HttpConnection.cs
Log:
2008-02-21 Zoltan Varga <[EMAIL PROTECTED]>
* HttpConnection.cs (Close): Close the socket even if Shutdown throws
an exception.
Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2008-02-21 09:58:39 UTC (rev
96330)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2008-02-21 11:04:49 UTC (rev
96331)
@@ -1,3 +1,7 @@
+2008-02-21 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * HttpConnection.cs (Close): Close the socket even if Shutdown throws
an exception.
+
2008-02-17 Daniel Nauck <[EMAIL PROTECTED]>
* HttpWebResponse.cs: refactored cookie expires parsing to
Modified: trunk/mcs/class/System/System.Net/HttpConnection.cs
===================================================================
--- trunk/mcs/class/System/System.Net/HttpConnection.cs 2008-02-21 09:58:39 UTC
(rev 96330)
+++ trunk/mcs/class/System/System.Net/HttpConnection.cs 2008-02-21 11:04:49 UTC
(rev 96331)
@@ -313,8 +313,11 @@
Socket s = sock;
sock = null;
- s.Shutdown (SocketShutdown.Both);
- s.Close ();
+ try {
+ s.Shutdown (SocketShutdown.Both);
+ } finally {
+ s.Close ();
+ }
if (context_bound)
epl.UnbindContext (context);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches