1
0
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:
David CARLIER
2022-05-30 13:12:52 +01:00
committed by GitHub
parent 3bf4098eee
commit daba5fb43f

View File

@@ -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