title: Netty SslHandler handshake timeout after removal
body: <p>Part of our application requires removing/adding SSL handlers in our Netty pipeline, we set a timeout on the SSL handshake to try and prevent <a href="https://en.wikipedia.org/wiki/Slowloris_(computer_security)" rel="nofollow noreferrer">Slowloris attacks</a>. We're using Netty 4.1.44.Final.</p>
  
  <p>When creating an SslHandler based on a server SSLEngine, we set a 2 second handshake timeout. However if the channel is idle for 1 second, we will replace the SslHandler with a new one with a client SSLEngine that will be able to successfully handshake. However the pipeline receives an <code>javax.net.ssl.SSLException: handshake timed out</code> from the original SslHandler.</p>
  
  <p>Is there a better way to do this dynamic replacement of SslHandlers that allows setting a handshake timeout?</p>