This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: RFC: Too many race conditions.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]