Bug #78611 [Opn->Ver]: listen.backlog is not -1, and -1 does not mean 'unlimited'.
Edit report at https://bugs.php.net/bug.php?id=78611&edit=1
ID: 78611
Updated by: requinix@php.net
Reported by: psi at 7io dot org
Summary: listen.backlog is not -1, and -1 does not mean
'unlimited'.
-Status: Open
+Status: Verified
Type: Bug
Package: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
https://www.php.net/manual/en/install.fpm.configuration.php
> listen.backlog int
> Set listen(2) backlog. A value of '-1' means unlimited. Default value: -1.
> In BSD, the default value is -1, but it does not mean "unlimited".
Source? Neither the FreeBSD, NetBSD, nor OpenBSD manpages talk about a backlog <= 0. Meanwhile
die.net's POSIX docs say such a backlog "may be set to an implementation-defined minimum
value".
Unless you're talking about the literal meaning of not having any limit whatsoever? Which
obviously could not be the case.
Previous Comments:
------------------------------------------------------------------------
[2019-09-30 05:34:24] psi at 7io dot org
Description:
------------
As described in this code:
https://github.com/php/php-src/blob/1ad08256f349fa513157437abc4feb245cce03fc/sapi/fpm/fpm/fpm_sockets.h#L17
the default value of "listen.backlog" in php-fpm.conf is not -1. It is 511.
In BSD, the default value is -1, but it does not mean "unlimited".
Please see here(freebsd):
https://www.freebsd.org/cgi/man.cgi?listen(2)#end
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78611&edit=1
Thread (4 messages)