[Mono-bugs] [Bug 71203][Nor] Changed - Many Socket Methods Fail when > 1024 File descriptors are Open

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 11 May 2005 14:45:38 -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 scott@imeem.com.

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

--- shadow/71203	2005-05-11 14:15:47.000000000 -0400
+++ shadow/71203.tmp.26888	2005-05-11 14:45:37.000000000 -0400
@@ -241,6 +241,19 @@
 I've been testing 1.1.7, this is definately still an issue for the
 Poll method.
 
 ------- Additional Comments From scott@imeem.com  2005-05-11 14:15 -------
 Err I forgot to say that repeatedly invoking the Poll() method when
 large numbers of sockets are open will cause Mono to crash.
+
+------- Additional Comments From scott@imeem.com  2005-05-11 14:45 -------
+More info - the magic number appears to be 1216 - open 1216 sockets
+and then poll them each for read and write (just like the DoPollTest()
+method above) - once it hits socket 1216 it throws a null reference
+exception in Socket:Poll_internal which cannot be caught, this kills
+the mono process.
+
+We've seen this same exception in other tests, even when our code
+isn't using Poll, presumably something internal to the mono class
+libraries is calling this and ultimately killing the process.
+
+I can't figure out the significance of 1216, although it is 1024 + 192?