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

Allow WebSocket extension selection to be done from UpgradeListener #4379

Merged

Conversation

lachlan-roberts
Copy link
Contributor

Allow extensions to be set directly in the headers in the UpgradeListener.
Extensions are allowed to be set in the ClientUpgradeRequest or the UpgradeListener but not both, in which case we will abort the request.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…UpgradeListenerExtensions

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts
Copy link
Contributor Author

@sbordet this change is intended to fix the issue in cometd 6 where you wanted to select extensions from the UpgradeListener.

Copy link
Contributor

@sbordet sbordet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lachlan-roberts I have verified that the CometD 6 tests that were failing now pass cleanly with these changes.

@lachlan-roberts lachlan-roberts merged commit 47117f8 into jetty-10.0.x Dec 5, 2019
@lachlan-roberts lachlan-roberts deleted the jetty-10.0.x-UpgradeListenerExtensions branch December 5, 2019 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants