I have an issue using NettyJaxrsServer with SSL. The first request succeed and subsequent ones timeout. Typically, if I use curl to send an HTTPS request, only the first call passes. I checked with wireshark to see what is happening. The server performs the handshake only for the first request. For the second request the client sends a "Hello" message, and the server do not continue the handshake. It seems like the server is keeping an SSL session even after the client disconnection.
I verified the code and for each client connection, a new SSLHandler is inserted in the client pipeline but using the same SSLEngine.
From Netty documentation, I understand that a new SSLEngine should be used for each new client connection instead of using the same one.