geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit 51959f2e295b12a6549278709954f6630655602a
parent b26c0644c0b0badec69870e4b92da4e0b4225b31
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:
Mmain.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;