IntersectMBO / IntersectMBO/ouroboros-network

Validate if received `acceptedConnectionsHardLimit` is not too large

Open
#4,405 0 comments 0 reactions 0 assignees View on GitHub
consensus consensus-migration ouroboros-diffusion
Dominant language
Haskell
Stars
296
Forks
104
Avg merge
2d 10h
Merged PRs (30d)
4

Description

The number of file descriptors per process can be obtained with [`getrlimit`](https://man7.org/linux/man-pages/man2/getrlimit.2.html) on `Linux` and `MacOS` ([`getrlimit`](https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getrlimit.2.html)) as well as `BSD` ([`getrlimit`](https://man.freebsd.org/cgi/man.cgi?query=getrlimit&sektion=2&format=html)).

We also need to know an upper bound for file descriptors per outbound / inbound (/ duplex) connections used by the consensus layer.

I am not sure how to do that on `Windows`, but maybe we don't need this check there (we don't advise to run relays / BPs on Windows machines).

This issue subsumes #1836.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.