V
V
VMCLOUD2014-08-25 21:54:44
linux
VMCLOUD, 2014-08-25 21:54:44

So what is the listen.backlog directive responsible for and how to understand it?

Actually, what does the listen.backlog directive in php-fpm do? The definitions of this parameter are ambiguous, -1 == unlim say some, -1 == take settings from sysctl others say, 4096 (for example) = the value of the queue set by the handles, because all the previous options are decay.
If I understand correctly, the value of listen.backlog is the size of the pool queue, or am I wrong?!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s1dney, 2014-08-26
@s1dney

listen.backlog is the backlog parameter of the TCP listen function of the socket on which the fpm hangs,
the backlog parameter is responsible for the size of the queue of simultaneously _waiting_ connections to the socket, that is, initiated (SYN - SYN,ACK - ACK), but not yet accepted by the server (established)
- 1 uses the current hard limit net.core.somaxconn, you can open the source and see for yourself. The default value in Linux is 128 which is more than enough for any php-fpm.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question