mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix: gunicorn run tornado app failed
This commit is contained in:
parent
1299ea9e96
commit
df82cac7d9
@ -110,7 +110,8 @@ class TornadoWorker(Worker):
|
||||
if not isinstance(app, tornado.web.Application) or \
|
||||
isinstance(app, tornado.wsgi.WSGIApplication):
|
||||
app = WSGIContainer(app)
|
||||
elif not isinstance(app, WSGIContainer):
|
||||
elif not isinstance(app, WSGIContainer) and \
|
||||
not isinstance(app, tornado.web.Application):
|
||||
app = WSGIContainer(app)
|
||||
|
||||
# Monkey-patching HTTPConnection.finish to count the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user