File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,21 @@ Available listener options:
99
99
defines SSL/TLS
100
100
:ref: `settings <configuration-listeners-ssl >`.
101
101
102
+ * - **backlog **
103
+ - Integer;
104
+ controls the 'backlog' parameter to the listen(2) system-call.
105
+ This essentially limits the number of pending connections waiting
106
+ to be accepted.
107
+
108
+ The default varies by system. On Linux, FreeBSD, OpenBSD and macOS
109
+ we default (-1) to the OS's default. E.g. on Linux since 5.4 this is
110
+ 4096, on FreeBSD it's 128.
111
+
112
+ On other systems we default to 511.
113
+
114
+ NOTE: Whatever limit you set here will be limited by the OS's
115
+ system-wide sysctl, e.g. on Linux net.core.somaxconn and on BSD
116
+ kern.ipc.somaxconn
102
117
103
118
Here, a local listener accepts requests at port 8300
104
119
and passes them to the **blogs ** app
@@ -5662,4 +5677,4 @@ Example with njs and the use of a template literal:
5662
5677
" if" : " ` ${uri == ' /health' ? false : true} ` " ,
5663
5678
" path" : " ..."
5664
5679
}
5665
- }
5680
+ }
You can’t perform that action at this time.
0 commit comments