[Mono-bugs] [Bug 75025][Wis] New - When calling Abort() on a
non-responsive asynchronous HttpWebRequest,
the TCP socket remains open.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun May 22 09:42:14 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by simon.brys at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75025
--- shadow/75025 2005-05-22 09:42:14.000000000 -0400
+++ shadow/75025.tmp.9547 2005-05-22 09:42:14.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 75025
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: simon.brys at novell.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: When calling Abort() on a non-responsive asynchronous HttpWebRequest, the TCP socket remains open.
+
+Description of Problem:
+When calling Abort() on a non-responsive asynchronous HttpWebRequest in a
+timeout-callback routine, the TCP socket on OS level remains open with a
+state of SYN_SENT.
+
+As a consequence:
+- Any subsequent HttpWebRequests to that same url will not work, even if
+the remote host starts to respond again.
+- When the socket times out on OS level (by default this is after 180
+seconds), the following exception is thrown:
+
+================//CUT//================
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x0021b> System.Net.WebConnection:Connect ()
+in <0x0012b> System.Net.WebConnection:InitConnection (System.Object state)
+in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object
+(object)
+================//CUT//================
+
+Additional Information:
+- Happens since Mono 1.1.7
+- Have reproduced this on Novell Linux Desktop 9 and SuSE Linux
+Professional 9.3.
+- On Windows XP the Abort() call closes the socket correctly.
More information about the mono-bugs
mailing list