Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1590

NettyJaxrsServer not handshaken after first client disconnection


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.1.Final, 3.0.21.Final
    • 3.0.19.Final
    • jaxrs
    • None

      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.

            rhn-support-asoldano Alessio Soldano
            isabir_jira imane sabir (Inactive)
            0 Vote for this issue
            1 Start watching this issue