kaspanet / rusty-kaspa

Kaspa full-node reference implementation and related libraries in the Rust programming language
ISC License
442 stars 144 forks source link

Initialize FD limits on MacOS and Linux platforms at startup #333

Closed aspect closed 10 months ago

aspect commented 10 months ago

MacOS allows applications to set FD limits. The same should work in Linux if you are running as a root.

This PR adds an initializer that passively attempts to configure the needed settings and warns the user if it cannot do so (the output needs to be println!() as the logging subsystem is not yet initialized.