Improper use of inHandshake flag

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.0
    • Component/s: security-libs
    • None

      In the class SSLSocketImpl, the setting of the flag inHandshake and its checking are not synchronized which may cause race conditions between threads that can mess up the state machine of the SSLSocket.

      Also, currently setUseClientMode is the only method that checks the value of this flag. It might also be necessary to check this flag (in a synchronized fashion) in other methods such as setEnableSessionCreation, setNeedClientAuth, and setEnabledCipherSuites.

            Assignee:
            Bradford Wetmore
            Reporter:
            Mayank Upadhyay (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: