MINA
  1. MINA
  2. DIRMINA-580

Session Idle times out when SSL is enabled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0.10, 1.1.7, 2.0.0-M1
    • Fix Version/s: 2.0.0-M2, 1.0.11, 1.1.8
    • Component/s: Filter
    • Labels:
      None
    • Environment:
      Sun Solaris

      Description

      I have developed an HTTP Routing server using Mina 1.0.9 and I am using SSLFilter for handling SSL Connections.

      1. Using Jmeter as the client I am sending HTTPS requests to this server with 5 threads.
      2. For some of the requests(10%) the sessionCreated method on the Handler is getting called and the data from the client is not read by the server.
      3. sessionIdle() gets triggered and we close the connection.

      This happens for the ssl connections only and when the server is trying to resume the cached session.

      I enabled ssl debug using -Djavax.net.debug=all on the server and I got the following logs for the failed sessions

      0240: EB 3E 28 AD 97 20 36 B7 C0 35 4E 3E 80 71 88 99 %% Created: [Session-17, SSL_RSA_WITH_RC4_128_MD5]
      9uTWV0aG961 58 4Dk%% Cached server session: [Session-17, SSL_RSA_WITH_RC4_128_MD5]
      10 7A 0F 37 59C 66 D3 18 2A 2B 3144 1F 5 D9 16A EB 1 1F%% Resuming [Session-17, SSL_RSA_WITH_RC4_128_MD5]
      org.apache.mina.filter.SSLFilter.SSLSession=[Session-17, SSL_RSA_WITH_RC4_128_MD5]
      %% Invalidated: [Session-17, SSL_RSA_WITH_RC4_128_MD5]

      Any ideas why this could happen?

      1. session82.txt
        14 kB
        janardhanan vembunarayanan

        Activity

        Emmanuel Lecharny made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Trustin Lee made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Trustin Lee made changes -
        Fix Version/s 1.1.8 [ 12313117 ]
        Fix Version/s 1.0.11 [ 12313116 ]
        Assignee Trustin Lee [ trustin ]
        Affects Version/s 1.0.10 [ 12312993 ]
        Affects Version/s 2.0.0-M1 [ 12312171 ]
        Fix Version/s 2.0.0-M2 [ 12312861 ]
        Affects Version/s 1.1.7 [ 12312994 ]
        Affects Version/s 1.0.9 [ 12312880 ]
        janardhanan vembunarayanan made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        janardhanan vembunarayanan made changes -
        Field Original Value New Value
        Attachment session82.txt [ 12381808 ]
        janardhanan vembunarayanan created issue -

          People

          • Assignee:
            Trustin Lee
            Reporter:
            janardhanan vembunarayanan
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development