Stop ignoring panics in the peer receiver and heartbeat tasks #3199
Labels
A-diagnostics
Area: Diagnosing issues or monitoring performance
A-network
Area: Network protocol updates or fixes
C-security
Category: Security issues
I-hang
A Zebra component stops responding to requests
I-panic
Zebra panics with an internal error message
Milestone
Motivation
Zebra currently ignores panics in the peer message receiver task, and in the peer heartbeat task.
This can cause security or usability issues, because it can hide bugs, and cause hangs.
Designs
Add the join handles for these tasks to the
Client
, and poll them for panics duringClient::poll_ready
zebra/zebra-network/src/peer/handshake.rs
Lines 929 to 931 in 3ddb9f9
zebra/zebra-network/src/peer/handshake.rs
Lines 947 to 948 in 3ddb9f9
Related Work
This might be the cause of peer set or Zebra hangs.
The text was updated successfully, but these errors were encountered: