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

Issue #4475 - fix WebSocket streaming message ordering #4486

Merged

Conversation

lachlan-roberts
Copy link
Contributor

@lachlan-roberts lachlan-roberts commented Jan 17, 2020

Issue #4475

MessageInputStream now takes a session and uses suspend resume so that we only read the next frame if we have consumed all the data from the previous frame one or we exit from onMessage so all the bytes until the next message are discarded.

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

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

I'm not a huge fan of using suspend-resume like this, but I guess there is a need.
I'm approving this on the basis that this will not be merged directly into 10 and there will be a separate PR that I will review in much finer detail for 10.

@lachlan-roberts lachlan-roberts merged commit b649641 into jetty-9.4.x Jan 23, 2020
@lachlan-roberts lachlan-roberts deleted the jetty-9.4.x-4475-WebSocketStreamMessageOrder branch January 23, 2020 23:01
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.

3 participants