RFR: 8299018: java/net/httpclient/HttpsTunnelAuthTest.java fails with java.io.IOException: HTTP/1.1 header parser received no bytes [v3]

Daniel Fuchs dfuchs at openjdk.org
Mon Dec 19 16:34:52 UTC 2022


On Mon, 19 Dec 2022 15:54:50 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

>> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Send "Connection: close" if closing. Accept not content-length for HEAD and GET.
>
> test/jdk/java/net/httpclient/ProxyServer.java line 453:
> 
>> 451:             int m = cmdline.indexOf(' ');
>> 452:             var method = (m > 0) ? cmdline.substring(0, m) : null;
>> 453:             var nobody = List.of("GET", "HEAD");
> 
> I think we can include `CONNECT` in this list

Should we leave a failed CONNECT connection open? I'm not sure. CONNECT are handled separately on the client side too.

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

PR: https://git.openjdk.org/jdk/pull/11717


More information about the net-dev mailing list