title: Does SSL have anything built in that can detect a dropped connection?
body: <p>Consider this scenario:</p>
  
  <pre><code>[wanting to write]       [sent token success] 
  Application -------&gt; SSL -----------&gt;
                                       | *peer drops*
                [waiting to read]      | 
             ***blocked***&lt;------------ 
  </code></pre>
  
  <p>In other words, your application wants to write something, but the SSL internal state is WANT_READ. On the other end, the peer connection has dropped.</p>
  
  <p>Can SSL detect this through some keep-alive check of it's own? What can you do in this case? </p>