-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 #4548 - clean up websocket removing duplicated and unused classes #4549
Conversation
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
Quite the mess you have here. :-) The InvokerUtils has 2 versions. The javax version is the most complete and should be the one we settle on for websocket-core (or even jetty-util) |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The MessageWriter
should not use OutputStreamWriter
, as the contract for OutputStreamWriter
violates the rules of RFC6455 (we MUST validate outgoing UTF-8 and fail the connection if in violation. OutputStreamWriter
will use replacement characters, which is not allowed)
@joakime good catch, I see that this is a problem but it would also be good to not duplicate the implementations, and we probably want to use the I see that this is also going to be a problem with our I might leave out the changes to |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
I had to change |
MessageWriter reverted, more work needed in new PR.
Can I get some reviews on this soon. Any other work in jetty-10 websocket would likely cause lots of merge conflicts as there are so many files changed here. I also have some further changes based off this branch to fix issues #4538 and #4571. So I can put PRs up for those once this has been merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are aspects of these classes I don't like.... but in general the move to util is good!
Please file issues about what you don't like. |
Closes #4548
websocket-util
which contains implementation classes shared bywebsocket-jetty
andwebsocket-javax
.Other general cleanups, removed unused interfaces and classes, etc..