-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix removal of disconnected peers in the peer manager (#1182)
* Explicitly end underlying connection * Fire 'ProtocolStopped' event in any connection-end case * Count dial attempts and signal 'PeerUnreachable' * Temporarly show peer count for gossip-peerlist and protocol-peer_ manager * Display error message when sending the shutdown signal to an autopeering task fails * Remove unreachable discovered peers from peer manager * Remove unreachable discovered peers from gossip and peer manager * Publish PeerUnreachable for peers that don't identify properly; Change some logs; * Reset dial attempt counter only if peer successfully identified itself * Remove temporary logs * Alias macro starts with the significant part of peer id * Send PeerRemoved event for disconnected unknown peers * Alias macro starts with the significant part of peer id (for real) * Align autopeering peer id display * Ignore error if adding a local address fails * Change some log levels * Format; Introduce display offset constant, Update autopeering changelog * Update changelogs; bump versions * Nits * Fix typos and German comma in changelog Co-authored-by: Jochen Görtler <grtlr@users.noreply.github.com> * Fix docs * Address review comments * Simplify 'add_local_addr' method * Add explanation why sending commands to gossip layer cannot fail * Rename to 'identified_at' Co-authored-by: Jochen Görtler <grtlr@users.noreply.github.com>
- Loading branch information
Showing
22 changed files
with
369 additions
and
188 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.