From 5365f1a420f498f741933964b214c5620272809c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 28 Apr 2015 09:29:33 +1000 Subject: [PATCH] Increase listen backlog to 8k --- src/connector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connector.c b/src/connector.c index fd03991f..2f4972a4 100644 --- a/src/connector.c +++ b/src/connector.c @@ -940,7 +940,7 @@ int connector(proc_instance_t *pi) } /* Set listen backlog to larger than SOMAXCONN in case the * system configuration supports it */ - if (listen(sockd, 1024) < 0) { + if (listen(sockd, 8192) < 0) { LOGERR("Connector failed to listen on socket"); Close(sockd); goto out; @@ -982,7 +982,7 @@ int connector(proc_instance_t *pi) ret = 1; goto out; } - if (listen(sockd, 1024) < 0) { + if (listen(sockd, 8192) < 0) { LOGERR("Connector failed to listen on socket"); Close(sockd); goto out;