summaryrefslogtreecommitdiffhomepage
path: root/version
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-08-14 00:33:13 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-08-20 00:00:21 +0100
commit76489fb7e0ab9142651b91ee8072c6cda270dd09 (patch)
treee68d1638a005245452d1526ee1fefb437425b00d /version
parent97c15fa38fba641aef4b3adbc4226221c680a206 (diff)
downloadunit-76489fb7e0ab9142651b91ee8072c6cda270dd09.tar.gz
unit-76489fb7e0ab9142651b91ee8072c6cda270dd09.tar.bz2
conf, router: Make the listen(2) backlog configurable
@oopsoop2 on GitHub reported a performance issue related to the default listen(2) backlog size of 511 on nginx. They found that increasing it helped, nginx has a config option to configure this. They would like to be able to do the same on Unit (which also defaults to 511 on some systems). This seems reasonable. NOTE: On Linux before commit 97c15fa38 ("socket: Use a default listen backlog of -1 on Linux") we defaulted to 511. Since that commit we default to the Kernels default, which before 5.4 is 128 and after is 4096. This adds a new per-listener 'backlog' config option, e.g { "listeners": { "[::1]:8080": { "pass": "routes", "backlog": 1024 }, } ... } This doesn't effect the control socket. Closes: https://github.com/nginx/unit/issues/1384 Reported-by: <https://github.com/oopsoop2> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'version')
0 files changed, 0 insertions, 0 deletions