-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ws): correctly handle server-initiated close
This avoids a hanging behavior when the server closes the WS connection, either via a control close frame[1] or by closing the connection prematurely without sending the control frame (deviating from the WS protocol). If the control close frame is not received but the connection is closed, the error (`close 1006 (abnormal closure): unexpected EOF`) will be returned to the user's WS error handler, as it indicates an issue with the server. The user-specified close handler should be called in either case now. Closes #581 [1]: https://tools.ietf.org/html/rfc6455#section-5.5.1
- Loading branch information
Ivan Mirić
committed
Oct 23, 2019
1 parent
5cda323
commit d2a6999
Showing
5 changed files
with
120 additions
and
79 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
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
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
Oops, something went wrong.