mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix #1246
This commit is contained in:
parent
89674d6b35
commit
66546d66df
@ -70,7 +70,7 @@ backlog = 2048
|
|||||||
# A positive integer. Generally set in the 1-5 seconds range.
|
# A positive integer. Generally set in the 1-5 seconds range.
|
||||||
#
|
#
|
||||||
|
|
||||||
workers = 1
|
workers = 4
|
||||||
worker_class = 'sync'
|
worker_class = 'sync'
|
||||||
worker_connections = 1000
|
worker_connections = 1000
|
||||||
timeout = 30
|
timeout = 30
|
||||||
|
|||||||
@ -27,7 +27,8 @@ class TornadoWorker(Worker):
|
|||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
old_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
|
web.RequestHandler.clear = clear
|
||||||
sys.modules["tornado.web"] = web
|
sys.modules["tornado.web"] = web
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user