issue with ServerSocket::accept
Tom Tromey
tromey@redhat.com
Fri May 14 22:21:00 GMT 2004
>>>>> "David" == David Daney <ddaney@avtrex.com> writes:
David> It is my understanding that multiple threads can be in accept() on the
David> same socket. When a connection arrives, the OS chooses one of
David> waiting threads and its accept() returns. That is not to say that it
David> is necessarily a good idea, but I think it is legal.
Yeah, web servers use this feature to implement preforking.
IMO we ought to support it if possible.
Tom
More information about the Java
mailing list