Skip to content
Snippets Groups Projects
Commit 71247ceb authored by Olivier Dony's avatar Olivier Dony
Browse files

[FIX] longpolling/gevent: automatically restart worker when killed

Whenever the longpolling/gevent worker dies, it
should be automatically restarted by the prefork
server, just like it happens for HTTP workers.
parent 1719e6b9
Branches
Tags
No related merge requests found
......@@ -478,6 +478,8 @@ class PreforkServer(CommonServer):
self.long_polling_pid = popen.pid
def worker_pop(self, pid):
if pid == self.long_polling_pid:
self.long_polling_pid = None
if pid in self.workers:
_logger.debug("Worker (%s) unregistered", pid)
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment