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

sun/security/ssl/SSLSocketImpl/CloseSocket.java makes not reliable time assumption

    XMLWordPrintable

Details

    Backports

      Description

        sun/security/ssl/SSLSocketImpl/CloseSocket.java makes not reliable time assumption.
                         // wait a bit before closing the socket to give
                         // the client time to send its hello message
                         Thread.currentThread().sleep(100);
                         s.close();
        Test scenario is to close server socket during handshake, but with 100 MS sleep we can't guarantee in exactly what state server will be closed (e.g. handshake may be not started yet or already finished).

        Need to refactor test to add more control over test execution flow.

        Attachments

          Issue Links

            Activity

              People

                fguallini Fernando Guallini
                snikandrova Svetlana Nikandrova (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: