php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78611 listen.backlog is not -1, and -1 does not mean 'unlimited'.
Submitted: 2019-09-30 05:34 UTC Modified: 2019-09-30 08:45 UTC
From: psi at 7io dot org Assigned:
Status: Verified Package: Documentation problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: psi at 7io dot org
New email:
PHP Version: OS:

 

 [2019-09-30 05:34 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-30 08:45 UTC] requinix@php.net
-Status: Open +Status: Verified
 [2019-09-30 08:45 UTC] 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-10-02 16:40 UTC] 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.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Oct 23 05:01:24 2020 UTC