Skip to content

Commit 5727010

Browse files
committed
Cap number of file descriptors to 640k
It oughta be enough for everybody. (This is a temporary thing, hopefully.)
1 parent 72116f8 commit 5727010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/lwan.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ static rlim_t setup_open_file_count_limits(void)
798798
}
799799

800800
out:
801-
return r.rlim_cur;
801+
return LWAN_MIN(655360ull, r.rlim_cur);
802802
}
803803

804804
static void allocate_connections(struct lwan *l, size_t max_open_files)

0 commit comments

Comments
 (0)