Skip to content

Commit

Permalink
Default to system defined backlog value
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Aug 4, 2018
1 parent 7902a6a commit c8a55c3
Show file tree
Hide file tree
Showing 20 changed files with 259 additions and 38 deletions.
2 changes: 1 addition & 1 deletion Dockerfiles/base/data/php-fpm.conf/php-fpm-5.2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<value name="listen_options">
Set listen(2) backlog
<value name="backlog">1024</value>
<value name="backlog">128</value>
Set permissions for unix socket, if one used.
In Linux read/write permissions must be set in order to allow connections from web server.
Many BSD-derrived systems allow connections regardless of permissions.
Expand Down
17 changes: 15 additions & 2 deletions Dockerfiles/base/data/php-fpm.conf/php-fpm-5.3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -116,4 +130,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
17 changes: 15 additions & 2 deletions Dockerfiles/base/data/php-fpm.conf/php-fpm-5.4.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -118,4 +132,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
17 changes: 15 additions & 2 deletions Dockerfiles/base/data/php-fpm.conf/php-fpm-5.5.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -118,4 +132,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
17 changes: 15 additions & 2 deletions Dockerfiles/base/data/php-fpm.conf/php-fpm-5.6.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -118,4 +132,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
17 changes: 15 additions & 2 deletions Dockerfiles/base/data/php-fpm.conf/php-fpm-7.0.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -118,4 +132,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
17 changes: 15 additions & 2 deletions Dockerfiles/base/data/php-fpm.conf/php-fpm-7.1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -118,4 +132,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
17 changes: 15 additions & 2 deletions Dockerfiles/base/data/php-fpm.conf/php-fpm-7.2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -118,4 +132,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
17 changes: 15 additions & 2 deletions Dockerfiles/base/data/php-fpm.conf/php-fpm-7.3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -118,4 +132,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
2 changes: 1 addition & 1 deletion Dockerfiles/work/data/php-fpm.conf/php-fpm-5.2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<value name="listen_options">
Set listen(2) backlog
<value name="backlog">1024</value>
<value name="backlog">128</value>
Set permissions for unix socket, if one used.
In Linux read/write permissions must be set in order to allow connections from web server.
Many BSD-derrived systems allow connections regardless of permissions.
Expand Down
17 changes: 15 additions & 2 deletions Dockerfiles/work/data/php-fpm.conf/php-fpm-5.3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -116,4 +130,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
17 changes: 15 additions & 2 deletions Dockerfiles/work/data/php-fpm.conf/php-fpm-5.4.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -118,4 +132,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
17 changes: 15 additions & 2 deletions Dockerfiles/work/data/php-fpm.conf/php-fpm-5.5.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,25 @@ access.log = /proc/self/fd/2


; ############################################################
; Worker configuration
; Backlog configuration
; ############################################################

[www]
; A maximum of backlog incoming connections will be queued for processing.
; If a connection request arrives with the queue full the client may receive an error with an
; indication of ECONNREFUSED, or, if the underlying protocol supports retransmission,
; the request may be ignored so that retries may succeed.

; This should not be greater than `cat /proc/sys/net/core/somaxconn`, otherwise connections
; are silently truncated
listen.backlog = 128


; ############################################################
; Worker configuration
; ############################################################

[www]
; static - the number of child processes is fixed (pm.max_children).
;
; dynamic - the number of child processes is set dynamically based on the following directives:
Expand Down Expand Up @@ -118,4 +132,3 @@ group = devilbox
[www]
; Ensure to listen here
listen = 9000
listen.backlog = 1024
Loading

0 comments on commit c8a55c3

Please sign in to comment.