-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: fix race condition provoked by channel.ban()
If a node we are connected to as part of a refinery session sends arbitrary messages, it could trigger a "ban", which would result in a panic if the refinery was moving the peer to whitelist at the same time we are sending the node to the blacklist. Following this commit, we ignore messages without dispatchers if they come from a refine session.
- Loading branch information
darkfi
committed
Jan 28, 2025
1 parent
14e60de
commit 9b3c4b3
Showing
2 changed files
with
29 additions
and
16 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