-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't defer WebSocket opening, close #1348
Motivation: We currently buffer WebSocket opening until first LastHttpContent reception with the UpgradeCallback. This doesn't make sense, and forces us to buffer any frame that might be sent along with the upgrade response. Modifications: * Drop UpgradeHandler that's never used as an abstraction * Perform upgrade/abort as soon as response is received * Ignore LastHttpContent * No need to buffer any frame Result: More simple code
- Loading branch information
Showing
4 changed files
with
59 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
client/src/main/java/org/asynchttpclient/ws/UpgradeHandler.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters