-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: close circuit-relay streams on connection failure (#1758)
If a dial to a relayed address fails, e.g. with status `NO_RESERVATION`, the newly created `/libp2p/circuit/relay/0.2.0/hop` stream is **never closed**. This can be particularly bad if the connection manager keeps auto-dialing the address, since the streams just accumulate until they hit the max per-protocol stream limit (64). I believe this is the ultimate issue behind [#1695](#1695). --------- Co-authored-by: achingbrain <alex@achingbrain.net>
- Loading branch information
1 parent
e93d258
commit 1af7808
Showing
2 changed files
with
32 additions
and
1 deletion.
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