nf_requireFileLimit

Raises a limit on number of files for the current process to at least the specified value.

NF_STATUS nf_requireFileLimit(int file_limit)

Parameters

file_limit
New limit for the number of file handles.

Return Values

NF_STATUS_SUCCESS on success.

Remarks

By default OS has small limit on the number of file handles. In result the local proxy stops accepting redirected connections upon reaching the limit for sockets. It is necessary to specify the limit large enough to handle the filtered traffic.