Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4311311

Improper use of inHandshake flag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: