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

NettyJaxrsServer not handshaken after first client disconnection

    XMLWordPrintable

Details

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

    Description

      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.
      https://github.com/resteasy/Resteasy/blob/master/server-adapters/resteasy-netty4/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyJaxrsServer.java#L278

      From Netty documentation, I understand that a new SSLEngine should be used for each new client connection instead of using the same one.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: