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 [EMAIL PROTECTED]

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

--- shadow/79361        2006-09-11 14:33:53.000000000 -0400
+++ shadow/79361.tmp.31079      2006-09-11 14:33:53.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 79361
+Product: Mono: Tools
+Version: 1.1
+OS: 
+OS Details: XP SP2 / Visual Studio 2005
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: XSP
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [XSP] Exception when stoping Mono.WebServer.ApplicationServer
+
+Description of Problem:
+
+XSP is launching Mono.WebServer.ApplicationServer, but when the thread is 
+stopped, an ObjectDisposed exception is thrown from OnAccept (IAsyncResult 
+ares)
+
+Steps to reproduce the problem:
+1. Start XSP
+2. Hit enter in the console to stop it
+
+Actual Results:
+- an exception is launced
+
+Expected Results:
+- XSP should stops quietly
+
+How often does this happen? 
+- every time
+
+Additional Information:
+- I believe that that problem could be solved by adding a inner try/catch 
+in the finally block because like : 
+
+void OnAccept (IAsyncResult ares)
+               {
+                       Socket accepted = null;
+                       try {
+                               accepted = listen_socket.EndAccept (ares);
+                       } catch {
+                       } finally {
+                try
+                {
+                    listen_socket.BeginAccept(accept_cb, null);
+                }
+                catch (ObjectDisposedException) { }
+            }
+
+                       if (accepted == null)
+                               return;
+                       accepted.Blocking = true;
+                       SetSocketOptions (accepted);
+                       StartRequest (accepted, 0);
+               }
+
+Since I'm not an expert, this should be confirmed by a Mono dev.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to