fpm sockets set listen back queue size to negative which trim down (#8638)

to the SOMAXCONN hard limit on macOs.
This commit is contained in:
David CARLIER 2022-05-30 13:12:52 +01:00 committed by GitHub
parent 3bf4098eee
commit daba5fb43f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,9 +12,9 @@
#include "fpm_worker_pool.h" #include "fpm_worker_pool.h"
/* /*
On FreeBSD and OpenBSD, backlog negative values are truncated to SOMAXCONN On Linux, FreeBSD, OpenBSD and macOS, backlog negative values are truncated to SOMAXCONN
*/ */
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__) #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__) || defined(__APPLE__)
#define FPM_BACKLOG_DEFAULT -1 #define FPM_BACKLOG_DEFAULT -1
#else #else
#define FPM_BACKLOG_DEFAULT 511 #define FPM_BACKLOG_DEFAULT 511