-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(iroh-net): avoid double connections to relays (#2148)
The `self.connect` call in `Actor::recv_detail` was racing to create a connection with an incoming actor message to do so. This simplifies `recv_detail` and only attempts to do so if there is already a connection, which is the correct logic in the first place. Closes #2144 --------- Co-authored-by: Kasey <[email protected]> Co-authored-by: Kasey <[email protected]>
- Loading branch information
1 parent
c85bf3d
commit aa1cf66
Showing
3 changed files
with
59 additions
and
43 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