On Fri, 9 Sep 2022 13:08:21 GMT, Julian Reschke <d...@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