From 593051979fe244760823f8e1460414564fd27a53 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Tue, 9 Dec 2008 17:35:53 +0000 Subject: [PATCH] ganeti.http.server: Increase connection backlog to 1024 This solves a problem with many concurrent requests. By default, 1024 is the maximum backlog on Linux kernels. We limit the number of clients through MAX_CHILDREN, too. The idea of just increasing the backlog is taken from lighttpd. Reviewed-by: amishchenko --- lib/http/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/server.py b/lib/http/server.py index d6f2b8877..fdaf6abe8 100644 --- a/lib/http/server.py +++ b/lib/http/server.py @@ -412,7 +412,7 @@ class HttpServer(http.HttpSocketBase): def Start(self): self.socket.bind((self.local_address, self.port)) - self.socket.listen(5) + self.socket.listen(1024) def Stop(self): self.socket.close() -- GitLab