From d55ff418701e90efeba8ce180bd119e4a50809c4 Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Sat, 18 Aug 2018 13:44:32 +0200 Subject: [PATCH] Set TCP listen backlog for API socket to SOMAXCONN A value of 1 is too low for heavy users of the API, such as the weldr-web interface. This is also systemd's default for sockets it opens. Using lorax-composer with socket activation already results in a backlog of SOMAXCONN connections. (cherry picked from commit be5d50e6f31ceaed4663a35f482d0591fc45cf9b) --- src/sbin/lorax-composer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbin/lorax-composer b/src/sbin/lorax-composer index 0cb65bc2..2b42dd3c 100755 --- a/src/sbin/lorax-composer +++ b/src/sbin/lorax-composer @@ -230,7 +230,7 @@ if __name__ == '__main__': listener.bind(opts.socket) os.chmod(opts.socket, 0o660) os.chown(opts.socket, 0, gid) - listener.listen(1) + listener.listen(socket.SOMAXCONN) start_queue_monitor(server.config["COMPOSER_CFG"], uid, gid)