Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with WebSocket UpgradeRequest after upgrade is complete #12877

Open
wants to merge 6 commits into
base: jetty-12.1.x
Choose a base branch
from

Conversation

lachlan-roberts
Copy link
Contributor

Issue #11294

replaces PR #12861

The UpgradeRequest/UpgradeResponse interfaces are available from the Session in the Jetty WebSocket API.

These can be accessed after the upgrade, this PR introduces testing for these methods and fixes the ones which do not work.

For the EE10/EE11 environment it is possible for people to downcast the UpgradeRequest to a JettyServerUpgradeRequest, in EE11 these methods now throw ISE after the upgrade, as they are only indented to be used during the negotiation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

1 participant