title: SSL handshake error: session id context uninitialized
body: <p>I'm writing server application which uses <em>boost::asio</em>, and <em>libssl</em> via its integration with <em>boost::asio</em>. When there is incoming connection, the first time the handshake succeeded, but after the connection is dropped and the client tries to connect again, the handshake fails with the error:</p>
  
  <blockquote>
    <p>session id context uninitialized</p>
  </blockquote>
  
  <p><a href="http://webcache.googleusercontent.com/search?q=cache:http://permalink.gmane.org/gmane.comp.lib.boost.asio.user/5969&amp;gws_rd=cr&amp;ei=HEWbV7b0AYa6ar-mroAK" rel="nofollow">Here</a> has proposed solution with using <strong>SSL_OP_NO_TICKET</strong> option when the SSL context is initialized. I'm using it the following way:</p>
  
  <pre><code>m_sslContext.set_options(SSL_OP_NO_TICKET);
  </code></pre>
  
  <p>In the beginning this resolves the problem, but now despite the option is still set the error appears again. Does anybody has an idea what other can be done with this problem?</p>