mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
16 lines
427 B
C
16 lines
427 B
C
$NetBSD: patch-lib_nsock.c,v 1.2 2015/12/18 00:55:17 rodent Exp $
|
|
|
|
Increase maximum queue length for socket to avoid disaster on large deployments.
|
|
|
|
--- lib/nsock.c.orig 2014-08-12 15:00:01.000000000 +0000
|
|
+++ lib/nsock.c
|
|
@@ -81,7 +81,7 @@ int nsock_unix(const char *path, unsigne
|
|
if(flags & NSOCK_UDP)
|
|
return sock;
|
|
|
|
- if(listen(sock, 3) < 0) {
|
|
+ if(listen(sock, 1024) < 0) {
|
|
close(sock);
|
|
return NSOCK_ELISTEN;
|
|
}
|