-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only report closure errors for the last connection
Safari and iOS Chrome (WebKit) sometimes open multiple TCP connections that end up being part of the same tcpPacketConn object in TCPMuxDefault. After some time, the extra connection is closed even though the main one is still operational. In this case, the entire peer connection gets disconnected. Instead, we probably only want to close the entire connection only once there is no other open TCP connection (this PR). To be honest, I am not sure why Safari and iOS Chrome do this. However, there is probably no chance fixing it there.
- Loading branch information
Showing
2 changed files
with
8 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