[Mono-bugs] [Bug 75812][Min] Changed - Unhandled Exceptions when closing Sockets (Asynchronous IO)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 19 04:51:52 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 schwimmlehrer at hotmail.com.


--- shadow/75812	2005-08-18 18:37:36.000000000 -0400
+++ shadow/75812.tmp.5989	2005-08-19 04:51:52.000000000 -0400
@@ -65,6 +65,27 @@
    if (_size < 1)
     throw new InvalidOperationException ();
 ------- Additional Comments From gonzalo at ximian.com  2005-08-18 18:37 -------
 It would really help if you provide a self-contained test case, not
 just a few lines.
+------- Additional Comments From schwimmlehrer at hotmail.com  2005-08-19 04:51 -------
+Here is a test case (attachments coming in a moment). I have created a
+stripped-down version of my chat server and client. I took me some
+time to create these test cases, but I think I know the exact problem now:
+In my Disconnect function on the server I notify all other clients of
+a single client disconnect. I am doing this when all clients
+disconnect at the same time (because my client stress test is built
+like that). So it seems that some of the clients I am sending this out
+to are already "dead", so the above exception is generated.
+foreach (object state1 in states)
+	StateObject obj = (StateObject) state1;
+	Send(obj, handler.ip + " has disconnected.\0");
+Thank you!

More information about the mono-bugs mailing list