IntersectMBO / ouroboros-network

Specifications of network protocols and implementations of components running these protocols which support a family of Ouroboros Consesus protocols; the diffusion layer of the Cardano Node.
https://ouroboros-network.cardano.intersectmbo.org
Apache License 2.0
267 stars 86 forks source link

In case of exhausting FD limit the diffusion ought to shutdown #4403

Open coot opened 1 year ago

coot commented 1 year ago

Our current RethrowPolicy (for P2P) and ErrorPolicy (non-P2P, both remoteNetworkErrorPolicy and localErrorPolicy) will only shutdown the peer that exceeded the file descriptor limit.

coot commented 1 year ago

Note: in case of rethrowPolicy it's not enough to extend it, we also need to use it in PeerStateActions and Server so both requestOutboundConnection (which might call connect) and accept are handled.