unlimited
v1.2.2
Published
Upgrade the maximum file descriptor number (`'nofile'`) that can be opened by this process
Downloads
175
Maintainers
Readme
unlimited

Upgrade the maximum file descriptor number ('nofile'
) that can be opened by this process
install
npm install unlimited
usage
To attempt to upgrade the maximum file descriptor number that can be opened by this process
to effectively unlimited (65536
):
var unlimited = require('unlimited')
unlimited()
Or specify a specific 'nofile'
number to use:
unlimited(10000)
If the current user's permissions or the system's 'hard'
limit do not allow the maximum
file descriptor number to be increased, this function will do nothing (no-op).
For best results, start your node process as root
, run unlimited()
, then downgrade
the user permissions with the downgrade
package.
On non-posix platforms (e.g. Windows), this module does nothing.
license
MIT. Copyright (c) Feross Aboukhadijeh.