by Mark W. Kaelin
. Updated 23 years, 4 months ago
Use timeouts when reading sockets:
The March 3, Java TechMail discusses simulating non-blocking I/O with timeouts. Have you used the setSoTimeout method of the java.net.Socket class to simulate non-blocking I/O in Java versions prior to 1.4?