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 }