RFR: 8164804: sun/security/ssl/SSLSocketImpl/CloseSocket.java makes not reliable time assumption [v3]
Rajan Halade
rhalade at openjdk.java.net
Wed May 12 15:38:59 UTC 2021
On Tue, 11 May 2021 13:58:28 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:
>
> added thread stack comment in test
Marked as reviewed by rhalade (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/3856
More information about the security-dev
mailing list