v1.5.2
- Added an attempt to set the soft limit for the
RLIMIT_NOFILE
resource (linux/macos only)
RLIMIT_NOFILE
is the maximum number of file descriptors that can be opened by the process.
If the current hard limit is greater than our requested default, the soft limit is raised to the requested value.
If the hard limit is instead lower than the requested value AND the soft limit is lower than the hard limit, the soft limit is increased to be equal to the hard limit.
If both of the above conditions aren't met, nothing happens.