RFR: 8338740: java/net/httpclient/HttpsTunnelAuthTest.java fails with java.io.IOException: HTTP/1.1 header parser received no bytes [v2]
Daniel Fuchs
dfuchs at openjdk.org
Tue Sep 3 11:08:48 UTC 2024
> The `java/net/httpclient/HttpsTunnelAuthTest.java` has been observed failing intermittently with `java.io.IOException: HTTP/1.1 header parser received no bytes`, ... `Caused by: java.net.SocketException: Connection reset `.
>
> My suspicion is that the ProxyServer used by this test is the cause of the reset: when a tunnel connection is established, the proxy server acts as an intermediary between the client and the server, and shuffles things around in two directions between two sockets. However, if one end of one of the two sockets gets closed, the proxy will abruptly close the two sockets, without waiting for inflight traffic on the other direction to quiesce. I believe this is what is causing the connection reset.
Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
Review feedback
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/20674/files
- new: https://git.openjdk.org/jdk/pull/20674/files/5cbc4735..ddf0c10f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=20674&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=20674&range=00-01
Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/20674.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20674/head:pull/20674
PR: https://git.openjdk.org/jdk/pull/20674
More information about the net-dev
mailing list