[Mono-bugs] [Bug 74573][Nor] New - after HttpWebRequest application does not finish on Windows

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 12 Apr 2005 04:20:29 -0400 (EDT)


In-Reply-To: <bug-74573@chernobyl.ximian.com>
X-Bugzilla-Product: Mono: Class Libraries
X-Bugzilla-Component: System
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: Normal
X-Bugzilla-Severity: 
X-Bugzilla-Target-Milestone: ---

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 atsushi@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74573

--- shadow/74573	2005-04-12 04:20:29.000000000 -0400
+++ shadow/74573.tmp.17254	2005-04-12 04:20:29.000000000 -0400
@@ -0,0 +1,64 @@
+Bug#: 74573
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: Windows XP SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: atsushi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: after HttpWebRequest application does not finish on Windows
+
+
+application does not finish after HttpWebRequest is used. It happens AFAIK
+only on Windows.
+
+using System;
+using System.Net;
+
+class X {
+  static void Main () {
+    string url = "http:www.google.co.jp/";
+    WebRequest req = WebRequest.Create(url);
+    WebResponse res = req.GetResponse ();
+    res.Close();
+    Console.WriteLine ("Quit.");
+  }
+}
+
+Actual Results:
+After printing "Quit." it does not come back to console.
+
+Expected Results:
+It should quit.
+
+How often does this happen? 
+consistently, only on windows.
+
+Additional Information:
+Here's some tail lines from trace.log (more than 60MB). It shows that the
+the mail thread left X:Main().
+
+. . . . . . . . . . ENTER: System.Threading.Monitor:Exit
+(object)([System.IO.SynchronizedWriter:022DD1E0], )
+. . . . . . . . . . . ENTER: (wrapper managed-to-native)
+System.Threading.Monitor:Monitor_exit
+(object)([System.IO.SynchronizedWriter:022DD1E0], )
+. . . . . . . . . . . LEAVE: (wrapper managed-to-native)
+System.Threading.Monitor:Monitor_exit (object)
+. . . . . . . . . . LEAVE: System.Threading.Monitor:Exit (object)
+. . . . . . . . . LEAVE: System.IO.SynchronizedWriter:WriteLine (string)
+. . . . . . . . LEAVE: System.Console:WriteLine (string)
+. . . . . . . LEAVE: X:Main ()
+. . . . . . LEAVE: (wrapper runtime-invoke)
+System.Object:runtime_invoke_void
+(object,intptr,intptr,intptr)[OBJECT:00000000]
+
+Maybe some threads blocks the runtime to finish?