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.
This commit is contained in:
parent
94453ff94e
commit
be5d50e6f3
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user