-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent duplicate connections when multiplexing
This bug was introduced in [1]: a multiplexed socket could in some cases send multiple CONNECT packets, resulting in duplicate connections on the server side. A cached socket will now be reopened only if it was inactive, that is, if one had explicitly called socket.disconnect() before. Related: #1460 [1]: b7dd891
- Loading branch information
1 parent
4996f9e
commit 46213a6
Showing
2 changed files
with
54 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