Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Close stream to peer when the peer is banned #1552

Merged
merged 1 commit into from
May 17, 2019
Merged

Close stream to peer when the peer is banned #1552

merged 1 commit into from
May 17, 2019

Conversation

cpacia
Copy link
Member

@cpacia cpacia commented Apr 23, 2019

The ban manager only checks to see if a peer is banned if that peer tries to
open a new stream. If there is an existing stream to that peer the messages
would otherwise still get through. This commit changes the behavior to close
the streams to any banned peers which should have the effect of preventing
further communication from them.

The ban manager only checks to see if a peer is banned if that peer tries to
open a new stream. If there is an existing stream to that peer the messages
would otherwise still get through. This commit changes the behavior to close
the streams to any banned peers which should have the effect of preventing
further communication from them.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 35.678% when pulling 1810233 on ban into 2262a87 on master.

Copy link
Member

@placer14 placer14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants