RFC: Too many race conditions.

Jeroen Frijters jeroen@sumatra.nl
Tue May 22 09:05:00 GMT 2007


mark@mark.mielke.cc wrote:
> If .NET 2.0 does do this, then the close() interrupting accept() would
> be broken.

Hmm. accept() appears to be special cased and not use the reference counting mechanism. Instead they check if the handle is closed after accept() returns and then close the handle returned by accept(). This prevents it from being a security hole, although there is small probablity for a DoS.

Regards,
Jeroen



More information about the Java mailing list