|
Spec-Zone .ru
спецификации, руководства, описания, API
|
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.