[Mono-bugs] [Bug 74842][Maj] Changed - Stopping a listener doesn't break out of an AcceptSocket() call

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 7 May 2005 02:49:06 -0400 (EDT)


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

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

--- shadow/74842	2005-05-06 05:47:45.000000000 -0400
+++ shadow/74842.tmp.13184	2005-05-07 02:49:06.000000000 -0400
@@ -79,6 +79,10 @@
 Poll() is implemented using select().
 
 Given that only Begin/EndAccept + epoll seems to work, I think I'll
 change Accept to use those and handle the seletc/poll case in
 mono_thread_pool_remove_socket and dispatch any pending IO operation
 as we do for epoll.
+
+------- Additional Comments From gonzalo@ximian.com  2005-05-07 02:49 -------
+Seems like in C accept() blocks too when close() is called from
+another thread and poll() does not wake up!. Attaching the test case.