From 7da7d2aa8eb8f5e82bd6fae8f5dd1d83c9ead0a6 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sat, 15 Jan 2022 18:39:05 +0000 Subject: [PATCH] checkTcpBacklogSettings check for solaris based systems. (#10109) --- src/server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server.c b/src/server.c index 300d50198..550708acc 100644 --- a/src/server.c +++ b/src/server.c @@ -2121,6 +2121,10 @@ void checkTcpBacklogSettings(void) { serverLog(LL_WARNING,"WARNING: The TCP backlog setting of %d cannot be enforced because kern.somaxconn is set to the lower value of %d.", server.tcp_backlog, somaxconn); } } +#elif defined(SOMAXCONN) + if (SOMAXCONN < server.tcp_backlog) { + serverLog(LL_WARNING,"WARNING: The TCP backlog setting of %d cannot be enforced because SOMAXCONN is set to the lower value of %d.", server.tcp_backlog, SOMAXCONN); + } #endif }