Commit bcb1a39e authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

ganeti-noded: Close listening socket in child

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent d87e1814
......@@ -522,6 +522,16 @@ class HttpServer(http.HttpBase, asyncore.dispatcher):
if pid == 0:
# Child process
# The client shouldn't keep the listening socket open. If the parent
# process is restarted, it would fail when there's already something
# listening (in this case its own child from a previous run) on the
# same port.
except socket.error:
self.socket = None
self.request_executor(self, connection, client_addr)
except Exception:
logging.exception("Error while handling request from %s:%s",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment