-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix frame leak due to undrained send buffer (#860)
* Fix frame leak due to undrained send buffer Follow up to #845 Currently in `Connection.writeFrames()`, we return immediately upon a connection error. However, at that point there may still be frames stuck in the send buffer (`Connection.sendCh`) which haven't been sent due to the connection issue. Leaving it in such a state results in a frame leak since they will never be released. Change `writeFrames()` to always drain the send buffer upon return to fix this behavior.
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 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