Skip to content

Commit

Permalink
Merge pull request #2633 from duanhongyi/patch-1
Browse files Browse the repository at this point in the history
fix:  gunicorn run tornado app failed
  • Loading branch information
benoitc committed May 7, 2023
2 parents f19e31f + df82cac commit 8c1747b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gunicorn/workers/gtornado.py
Expand Up @@ -110,7 +110,8 @@ def run(self):
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
Expand Down

0 comments on commit 8c1747b

Please sign in to comment.