This commit is contained in:
benoitc 2016-05-02 15:04:30 +02:00
parent 89674d6b35
commit 66546d66df
2 changed files with 3 additions and 2 deletions

View File

@ -70,7 +70,7 @@ backlog = 2048
# A positive integer. Generally set in the 1-5 seconds range.
#
workers = 1
workers = 4
worker_class = 'sync'
worker_connections = 1000
timeout = 30

View File

@ -27,7 +27,8 @@ class TornadoWorker(Worker):
def clear(self):
old_clear(self)
self._headers["Server"] += " (Gunicorn/%s)" % gversion
if not "Gunicorn" in self._headers["Server"]:
self._headers["Server"] += " (Gunicorn/%s)" % gversion
web.RequestHandler.clear = clear
sys.modules["tornado.web"] = web