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

jetty-10.0.x WebSocket core cleanup #3783

Merged
merged 4 commits into from
Jun 21, 2019

Conversation

lachlan-roberts
Copy link
Contributor

  • we no longer iterate through every extension to validate the RSV bits on a frame can be used
  • Parser now uses live configuration from the coreSession for autoFragment and maxMessage size
  • validation was cleaned up a bit in WebSocketCoreSession

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@@ -122,8 +123,6 @@ public void negotiate(DecoratedObjectFactory objectFactory, ByteBufferPool buffe

this.extensions = new ArrayList<>();

String rsvClaims[] = new String[3];

for (ExtensionConfig config : negotiatedConfigs)
{
Extension ext;
Copy link
Contributor

Choose a reason for hiding this comment

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

the debug logs below (a fair way) should be protected with if (LOG.isDebugEnabled ...

@gregw
Copy link
Contributor

gregw commented Jun 20, 2019

@lachlan-roberts These changes look OK, but can you check the test failures before merging.

…etCoreCleanup

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts merged commit 3ae6d41 into jetty-10.0.x Jun 21, 2019
@lachlan-roberts lachlan-roberts deleted the jetty-10.0.x-WebSocketCoreCleanup branch June 21, 2019 00:14
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