On Mon, 30 Nov 2026 19:06:24 GMT, Volkan Yazici <[email protected]> wrote:

> Check for failures (e.g., EOF) in `HttpClient` TLS reader before marking 
> handshake completed.
> 
> ---------
> - [X] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Used the reproducer attached to the ticket against ab516556534:


$ time java DerivedCloseDuringHandshake.java
CLIENT sending; connectTimeoutSeconds=0
SERVER recordType=22 tls=3.3 payloadBytes=1603 handshakeType=1
SERVER closing: normal close (no SO_LINGER)
CLIENT elapsedSeconds=0.176 exception=javax.net.ssl.SSLHandshakeException: 
Remote host terminated the handshake
javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
        at 
java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:1049)
        ...
Caused by: javax.net.ssl.SSLHandshakeException: Remote host terminated the 
handshake
        at 
java.net.http/jdk.internal.net.http.common.SSLTube.checkForHandshake(SSLTube.java:602)
        ...

real    0m0.784s
user    0m2.222s
sys     0m0.247s

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

PR Comment: https://git.openjdk.org/jdk/pull/34134#issuecomment-7289062939

Reply via email to