Increase listen queue to solve c10k problem in geomyidae. - geomyidae - a small… | |
git clone git://git.codemadness.org/geomyidae | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 51959f2e295b12a6549278709954f6630655602a | |
parent b26c0644c0b0badec69870e4b92da4e0b4225b31 | |
Author: Christoph Lohmann <[email protected]> | |
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(-) | |
--- | |
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; |