title: Java socket timeout during read
body: <p>What happens if a client connected through a <code>Socket</code> has a bad lag ?
  Let's say i call <code>socket.read()</code> from the TCP server, and the client writes some stuff on the network pipe, but his connection is laging for 1 or 2 minutes. What will happen ? Will the <code>read</code> fail ? Or will it wait ?</p>
  
  <p>I'm not sure if it's even possible, but i'm playing online chess on FICS server and sometimes it seems to happen from my point of view (I'm only a user of this chess server).</p>
  
  <p>I'm asking this because i'm working on an online game and i'd like to handle such cases one way or another. But first I need to know if:</p>
  
  <ul>
  <li>it can happen</li>
  <li>it can be detected</li>
  </ul>
  
  <p>Thanks</p>