RFR: 8164804: sun/security/ssl/SSLSocketImpl/CloseSocket.java makes not reliable time assumption [v2]

Daniel Fuchs dfuchs at openjdk.java.net
Wed May 5 11:16:51 UTC 2021


On Wed, 5 May 2021 10:08:15 GMT, Fernando Guallini <fguallini at openjdk.org> wrote:

>> test sun/security/ssl/SSLSocketImpl/CloseSocket.java verifies the behavior when a server closes the socket connection during a handshake. The server was waiting a fixed 100ms before closing it, but there was no guarantee that the client started the handshake before or during that time frame 
>> 
>> With this changeset, the server is checking whether the client thread has initiated handshake, and retrying if needed after waiting a short time. In addition, the test is now reusing SSLSocketTemplate to simplify sockets configuration and client/server synchronization
>
> Fernando Guallini has updated the pull request incrementally with one additional commit since the last revision:
> 
>   var volatile

Marked as reviewed by dfuchs (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/3856



More information about the security-dev mailing list