summaryrefslogtreecommitdiff
path: root/net/nagios-base
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2015-12-18 00:55:17 +0000
committerrodent <rodent@pkgsrc.org>2015-12-18 00:55:17 +0000
commit6380b46554f174665b70a5392fbe1846b4602ccf (patch)
tree2f8d54754d6e8baad35bef71e70eee5e906c2d1b /net/nagios-base
parentc9e88fd2696ffe93998d315781ea2eb83b830454 (diff)
downloadpkgsrc-6380b46554f174665b70a5392fbe1846b4602ccf.tar.gz
Upstream set the maximum queue length of the socket to INT_MAX. Increase
this value to 1024 to accommodate larger deployments until we get a proper tunable.
Diffstat (limited to 'net/nagios-base')
-rw-r--r--net/nagios-base/distinfo4
-rw-r--r--net/nagios-base/patches/patch-lib_nsock.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/net/nagios-base/distinfo b/net/nagios-base/distinfo
index c3f52f7ba22..a483ae6bfca 100644
--- a/net/nagios-base/distinfo
+++ b/net/nagios-base/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.26 2015/11/04 00:35:13 agc Exp $
+$NetBSD: distinfo,v 1.27 2015/12/18 00:55:17 rodent Exp $
SHA1 (nagios-4.0.8.tar.gz) = d49586db6905a8e58a082251d8f89ef5c2cab872
RMD160 (nagios-4.0.8.tar.gz) = b53631755e0a23aba918a99f58b7bea237fdd799
@@ -23,7 +23,7 @@ SHA1 (patch-html_Makefile.in) = 33ca19b5cf37839be6fbd851a5dcf29d4d701c8b
SHA1 (patch-include_comments.h) = c86328a4f1437ee1dc2b6f97be61693414dd4fce
SHA1 (patch-include_locations.h.in) = 0ee376f6737b24f0d4ea8b37781aca70147c5e70
SHA1 (patch-include_statusjson.h) = c5a84b9ef3114f2e2480d719bbb4a24c8965e052
-SHA1 (patch-lib_nsock.c) = e50b9c5ed572fea309eb1c06fea2e0ee8f4d34d3
+SHA1 (patch-lib_nsock.c) = bd8801e4aff13ebac26e512b44764c2da1e2e5a5
SHA1 (patch-lib_runcmd.c) = fb34fe5cdc39aca973c1a6e125b125867e6ed262
SHA1 (patch-sample-config_nagios.cfg.in) = 4ad00840ad66d2e01b19c6db76c810fc3fb80795
SHA1 (patch-t-tap_test__xsddefault.c) = db7166fae411a461d8b4a4a31f55af693aeb03b0
diff --git a/net/nagios-base/patches/patch-lib_nsock.c b/net/nagios-base/patches/patch-lib_nsock.c
index cd195acae02..2b8b76e7855 100644
--- a/net/nagios-base/patches/patch-lib_nsock.c
+++ b/net/nagios-base/patches/patch-lib_nsock.c
@@ -1,4 +1,6 @@
-$NetBSD: patch-lib_nsock.c,v 1.1 2015/06/15 01:29:40 rodent Exp $
+$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
@@ -7,7 +9,7 @@ $NetBSD: patch-lib_nsock.c,v 1.1 2015/06/15 01:29:40 rodent Exp $
return sock;
- if(listen(sock, 3) < 0) {
-+ if(listen(sock, 128) < 0) {
++ if(listen(sock, 1024) < 0) {
close(sock);
return NSOCK_ELISTEN;
}