mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
@@ -488,7 +488,7 @@ static void update_fd_limits(main_server_st *s, unsigned main)
|
||||
|
||||
if (max > def_set.rlim_cur) {
|
||||
new_set.rlim_cur = max;
|
||||
new_set.rlim_max = new_set.rlim_cur;
|
||||
new_set.rlim_max = def_set.rlim_max;
|
||||
ret = setrlimit(RLIMIT_NOFILE, &new_set);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "error in setrlimit(%u): %s (cur: %u)\n", max, strerror(errno), (unsigned)def_set.rlim_cur);
|
||||
|
||||
Reference in New Issue
Block a user