![]() | Documentation Contents |
close()
method of ServerSocket
and DatagramSocket were synchronized
. The result was that if one thread
were blocked indefinitely in DatagramSocket.receive() or ServerSocket.accept(),
another thread couldn't break the blocking thread out by calling close(). This
is fixed in JDK1.1 by making the close() methods unsynchronized.
Copyright © 1995-2010 Sun Microsystems, Inc. All Rights Reserved. Please send comments using this Feedback page. |
![]() Java Technology |