title: Java SocketChannel doesn't detect disconnection?
body: <p>I have a socket running, using selectors. I am trying to check to see if my socket is connected to the server or not.</p>
  
  <pre><code>Boolean connected = _channel.isConnected();
  </code></pre>
  
  <p>and it always returns true. I turned off Airport (internet connection) on my computer, and when i check to see if the socket is connected or not, it still returns true.
  Any idea why?
  I try to write data to the server every 3 seconds, and it still doesn't change the state of my socket to disconnected.</p>