Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Handle PeerNotConnected exceptions when sending wire keep alives #918

Merged
merged 3 commits into from Feb 20, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

The DevP2P keep alive timer may fire between when we send a disconnect message to a peer and when the connection actually closes which causes a PeerNotConnected exception. Since we're disconnecting anyway we should ignore these instead of logging them at error level.

Copy link
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

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

LGTM

@ajsutton ajsutton merged commit 38edb0f into PegaSysEng:master Feb 20, 2019
@ajsutton ajsutton deleted the keep-alive-disconnected branch February 20, 2019 05:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants