Date: 06/06/06 (Java Web) Keywords: java Often we need to create a (client) socket connection in java but we do not want to wait indefinitely for the connection to open. We need a way to timeout socket connections. Two solutions and recommended code. Previously the only way was to create the socket in a Thread. And then kill the thread if it [...] Source: http://blog.taragana.com/index.php/archive/how-to-open-client-socket-with-timeout/
|