Doc #78611 [Ver->Csd]: 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: bukka@php.net
Reported by: psi at 7io dot org
Summary: listen.backlog is not -1, and -1 does not mean
'unlimited'.
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: FPM related
Operating System: Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
The docs updated in https://github.com/php/doc-en/commit/317a816da564d570986b2d9aed9c68e9ec173d4c
Previous Comments:
------------------------------------------------------------------------
[2019-10-02 16:40:22] henry dot paradiz at gmail dot com
Hello my name henry. The value -1 does not mean unlimited in BSD but it can continuously go on for a
long long time which is why it is important to keep the documentation the way it is. If we changed
everything over some minor details we would have successfully deleted the documentation. What I
recommend is changing BSD to accept it as "unlimited". One and done.
------------------------------------------------------------------------
[2019-09-30 08:45:07] requinix@php.net
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.
------------------------------------------------------------------------
[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)