title: Java interrupt thread when reading socket
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4425350/how-to-terminate-a-thread-blocking-on-socket-io-operation-instantly">How to terminate a thread blocking on socket IO operation instantly?</a>  </p>
  </blockquote>
  
  
  
  <p>I have client run in thread want to read from socket in Java. But while reading, maybe I want to kill the thread. So I <code>interrupt</code> it, but does socket's reading methods throw <code>InterruptedException</code>? I didn't find.</p>
  
  <p>So, how can I nicely ask thread to die while it's blocking on reading socket?</p>
  
  <p>Thanks</p>