Raise the file descriptor limit.

This commit is contained in:
JoelKatz
2013-07-15 14:59:27 -07:00
parent 3994546083
commit 1a68df4c37

View File

@@ -15,7 +15,7 @@ void setupServer ()
if (rl.rlim_cur != rl.rlim_max) if (rl.rlim_cur != rl.rlim_max)
{ {
rl.rlim_cur = rl.rlim_max; rl.rlim_cur = rl.rlim_max;
setrlimit(RLIMIT_NOFILE, &r1); setrlimit(RLIMIT_NOFILE, &rl);
} }
} }
#endif #endif