mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
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:
@@ -12,9 +12,9 @@
|
||||
#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
|
||||
#else
|
||||
#define FPM_BACKLOG_DEFAULT 511
|
||||
|
||||
Reference in New Issue
Block a user