Repository navigation
Conversation
|
@jazdw thanks for testing and sending this. Could you check the DCO instructions on how to sign off your commit and update the PR branch? This is required for us to process this. About checking for HTTP/2, |
I dug into this a little more, Jetty verifies the It also verifies the method is I am wondering if we should add a |
Closes gh-34362 Signed-off-by: Jared Wiltshire <[email protected]>
|
I don't mind a dedicated supports check for RFC 8441 as long as it is possible through the Servlet API. Jetty is at a lower level and can perform more checks I suspect. |
Signed-off-by: Jared Wiltshire <[email protected]>
|
@rstoyanchev I've pushed another commit, I don't know that it is necessary though. Happy for you to drop the second commit if you are happy with just the first. I've tested it on Jetty 12 EE10 with both GET |
See gh-34362 Signed-off-by: Jared Wiltshire <[email protected]>
|
I dropped the second commit. Out handshake checks are there to provide a consistent behavior, but Servlet containers will perform their own checks when upgrading. So we don't need this to be configurable with a flag. Thanks for the feedback and the changes! |
No problem, thanks Rossen |
f477c16 which closed #34044 was an incomplete fix. Further changes are necessary to support HTTP/2 CONNECT WebSocket upgrades (RFC 8441).
I have manually tested this PR and the CONNECT WebSocket upgrade works as expected using Jetty 12 EE10.
Link to RFC:
https://datatracker.ietf.org/doc/html/rfc8441
The RFC explicitly says that the
Sec-WebSocket-Keyheader is not required:The RFC explicitly says that the
ConnectionandUpgradeheaders are not required:TODO
:protocolpseudo-header