dcsimg

How can I open a Socket with a timeout?

John Zukowski

http://www.javaworld.com/javaworld/jw-09-1999/jw-09-timeout.html describes how to handle network timeouts in both the initial connection and in subsequent reads from the socket.