From 274e43489b69455e66d8d35e8d30625351e28c84 Mon Sep 17 00:00:00 2001 From: Xie Shi Date: Thu, 21 Jun 2012 16:45:16 +0800 Subject: [PATCH] Workers won't be killed if timeout set to 0 --- gunicorn/arbiter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index dc89eb6e..1e7d829a 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -389,6 +389,8 @@ class Arbiter(object): """\ Kill unused/idle workers """ + if not self.timeout: + return for (pid, worker) in self.WORKERS.items(): try: if time.time() - worker.tmp.last_update() <= self.timeout: