diff --git a/zebra-network/src/peer/connection.rs b/zebra-network/src/peer/connection.rs index 7fd535aa9..0517363a2 100644 --- a/zebra-network/src/peer/connection.rs +++ b/zebra-network/src/peer/connection.rs @@ -884,7 +884,10 @@ where metrics::counter!("pool.closed.loadshed", 1); self.fail_with(PeerError::Overloaded); } else { - // We could send a reject to the remote peer. + // We could send a reject to the remote peer, but that might cause + // them to disconnect, and we might be using them to sync blocks. + // For similar reasons, we don't want to fail_with() here - we + // only close the connection if the peer is doing something wrong. error!(%e, connection_state = ?self.state, client_receiver = ?self.client_rx,