From 83319f752c303c5f0c957cb684deeae764738555 Mon Sep 17 00:00:00 2001 From: duanhongyi Date: Thu, 10 Sep 2020 16:13:06 +0800 Subject: [PATCH] fix: repair django wsgi running error --- gunicorn/workers/gtornado.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gunicorn/workers/gtornado.py b/gunicorn/workers/gtornado.py index c98acb85..9dd3d7bc 100644 --- a/gunicorn/workers/gtornado.py +++ b/gunicorn/workers/gtornado.py @@ -110,6 +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): + app = WSGIContainer(app) # Monkey-patching HTTPConnection.finish to count the # number of requests being handled by Tornado. This