Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-85

SSLFilter race condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.9.0
    • 0.8.0
    • None
    • None
    • Java 5, FC3 x86-64

    Description

      I'm facing a race condition in SSLFilter. Basically I've done a "STARTTLS" kind of implementation in which SSL is enabled over an existing plain-text connection. The server tells the client to start the SSL negotiation via the application protocol and puts an SSLFilter over the connection to handle the handshake.

      The race condition occurs when the client sends the SSL handshake even before the SSLFilter is implemented on the connection. This data is sent to the IoHandler and causes all sorts of problems. Ultimately the session is in limbo - it has to be closed.

      A solution would be to stall the processing of incoming/outgoing data on the session till the filter is implemented successfully.

      Attachments

        Activity

          People

            trustin Trustin Lee
            vinod.p Vinod Panicker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: