Skip to content

Commit daba5fb

Browse files
authored
fpm sockets set listen back queue size to negative which trim down (#8638)
to the SOMAXCONN hard limit on macOs.
1 parent 3bf4098 commit daba5fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sapi/fpm/fpm/fpm_sockets.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
#include "fpm_worker_pool.h"
1313

1414
/*
15-
On FreeBSD and OpenBSD, backlog negative values are truncated to SOMAXCONN
15+
On Linux, FreeBSD, OpenBSD and macOS, backlog negative values are truncated to SOMAXCONN
1616
*/
17-
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__)
17+
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__) || defined(__APPLE__)
1818
#define FPM_BACKLOG_DEFAULT -1
1919
#else
2020
#define FPM_BACKLOG_DEFAULT 511

0 commit comments

Comments
 (0)