mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix tornado.wsgi.WSGIApplication calling error
This commit is contained in:
parent
2cdc7a9cfb
commit
a42daa03ed
@ -56,9 +56,11 @@ class TornadoWorker(Worker):
|
|||||||
PeriodicCallback(self.watchdog, 1000, io_loop=self.ioloop).start()
|
PeriodicCallback(self.watchdog, 1000, io_loop=self.ioloop).start()
|
||||||
|
|
||||||
# Assume the app is a WSGI callable if its not an
|
# Assume the app is a WSGI callable if its not an
|
||||||
# instance of tornardo.web.Application
|
# instance of tornado.web.Application or is an
|
||||||
|
# instance of tornado.wsgi.WSGIApplication
|
||||||
app = self.wsgi
|
app = self.wsgi
|
||||||
if not isinstance(app, tornado.web.Application):
|
if not isinstance(app, tornado.web.Application) or \
|
||||||
|
isinstance(app, tornado.wsgi.WSGIApplicaion):
|
||||||
app = WSGIContainer(app)
|
app = WSGIContainer(app)
|
||||||
|
|
||||||
# Monkey-patching HTTPConnection.finish to count the
|
# Monkey-patching HTTPConnection.finish to count the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user