http://bugzilla.novell.com/show_bug.cgi?id=498507
User [email protected] added comment http://bugzilla.novell.com/show_bug.cgi?id=498507#c5 --- Comment #5 from Yoni Shalom <[email protected]> 2009-04-29 03:57:58 MDT --- Gonzalo, this is not the case. Argh, I should've invested some more in the code sample. Look - Connection refused means that you got an RST right away from the target you tried to connect to. This is NOT what I'm talking about. Please, read the following carefully before submitting the bug as resolved again. 1. Add a Console.Readkey() at the and of Main(), so that you can't say the program exits before having a chance to perform the callback. 2. Change the target IP to an ip that, if you would telnet to, you would get a connection timeout (TCP SYN TIMEOUT). 3. Change the WaitOne to 10000, for example. What SHOULD happen in this case - 1. BeginConnect starts executing and exists immediately 2. Because the target does not reply to the TCP SYN, the timeout will only occur after 1 minute on a Mac. 3. The WaitOne() exists BEFORE the SYN timed out (10 seconds being less then 60) 4. The call to socket.close() should invoke the callback with an ObjectDisposedException. THIS IS WHAT DOESNT ALWAYS HAPPEN. THIS IS THE BUG. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
