Skip to content

Fix issues with WebSocket UpgradeRequest after upgrade is complete #12877

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

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

Conversation

lachlan-roberts
Copy link
Contributor

@lachlan-roberts lachlan-roberts commented Mar 6, 2025

Issue #11294

  • Ensure that JetterServerUpgradeRequest and JetterServerUpgradeResponse are only used for the webscoket negotiation, and are not available from the UpgradeRequest and UpgradeResponse which can be obtained from the Session.
  • The UpgradeRequest and UpgradeResponse instances from the Session are now CompletedUpgradeRequest, which will copy any information it needs so it is not accessing the core Request/Response after the upgrade.
  • Wrap the servlet request/response as a Core request/response before it is passed to the WebSocketHandshaker.
  • Various other cleanups.

@gregw
Copy link
Contributor

gregw commented Mar 26, 2025

@lachlan-roberts status of this?

@lachlan-roberts lachlan-roberts force-pushed the fix/jetty-12.1.x/11294/WebSocketUpgradeRequest branch from 08df54b to cceadba Compare June 3, 2025 03:59
@lachlan-roberts
Copy link
Contributor Author

@gregw this is ready for review now

@lachlan-roberts lachlan-roberts requested a review from gregw June 3, 2025 04:23
Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
lachlan-roberts added a commit that referenced this pull request Jun 5, 2025
Signed-off-by: Lachlan Roberts <[email protected]>
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.

2 participants