RFR: 8292044: HttpClient doesn't handle 102 or 103 properly [v8]

Daniel Fuchs dfuchs at openjdk.org
Fri Sep 9 13:42:52 UTC 2022


On Fri, 9 Sep 2022 13:08:21 GMT, Julian Reschke <duke at openjdk.org> wrote:

> A 101 response implies that the wire protocol is switching to the protocol specified in the "Upgrade" header field. I don't think it would be wise to ignore that, unless the protocol actually stays the same.
> 
> Note that this is indeed an edge case because it implies that the server is misbehaving. Thus, I'd rather raise an exception instead of making assumptions that will likely be incorrect.

I agree with Julian - if we didn't ask for an upgrade we should probably consider that as a protocol violation and close the connection.

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

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


More information about the net-dev mailing list