-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(netcheck): Do not read from main Conn sockets (#1017)
The get_report function is passed the primary Conn sockets so they can be used to send STUN messages from. However these sockets should not be read from directly, Conn already passes through the STUN payloads. Reading from them directly will lose packets in Conn. When the sockets are not passed in however we should create them ourselves, and read from them. The payloads are now received by the actor in the same way as otherwise, removing a lot of Option<>s.
- Loading branch information
Showing
2 changed files
with
105 additions
and
116 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