Increase listen queue to solve c10k problem in geomyidae. - geomyidae - A small C-based gopherd.
(HTM) git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit 51959f2e295b12a6549278709954f6630655602a
(DIR) parent b26c0644c0b0badec69870e4b92da4e0b4225b31
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 28 Jul 2024 16:00:45 +0200
Increase listen queue to solve c10k problem in geomyidae.
Diffstat:
M main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/main.c b/main.c
@@ -843,7 +843,7 @@ main(int argc, char *argv[])
}
for (j = 0; j < nlfdret; j++) {
- if (listen(lfdret[j], 255) < 0) {
+ if (listen(lfdret[j], 4096) < 0) {
perror("listen");
close(lfdret[j]);
continue;