13 Commits

Author SHA1 Message Date
benoitc
f168a21dae fix whitespaces 2012-02-19 11:27:46 +01:00
Randall Leeds
74f0ecdbbf Fix using WSGI handlers with tornado worker
Without this, tornado.web.Application instances could be used as
a gunicorn application, but running a standard wsgi callback under
the tornado worker would fail.

``self.wsgi`` is the property that may be a tornado.web.Application.
The transformed application, whether originally tornado.web.Application
or a WSGI callable, should be the argument to HTTPServer.

Also, it's probably poor form to be mutating the properties of ``self``
here when a local variable suffices.
2011-11-15 14:30:48 -08:00
Randall Leeds
105558595b fix #247 - gunicorn doesn't work with Tornado 2.0 2011-09-15 17:49:19 -07:00
Paul J. Davis
e1e634a8aa Fixed Tornado worker exiting.
Thanks to Masahiro Nakagawa for the report and patch.

Fixes #216
2011-06-06 06:34:14 -04:00
WoLpH
179b87639c removed python string formatting from logging to enable log message grouping 2011-05-11 23:11:36 +02:00
benoitc
95a4af2a9c display the right error when a worker can't be used. 2010-10-28 06:13:57 +02:00
Paul J. Davis
c8154ea5fd Simplify the gtornado monkey patch a bit. 2010-06-03 16:11:17 -04:00
benoitc
62540cffaa commit changes from @davisp + some fixes 2010-05-22 21:11:25 +02:00
Paul J. Davis
22695ff248 Assume non-web.Application instances are WSGI. 2010-04-26 20:08:05 -04:00
Paul J. Davis
ab25537b67 Fix assumption that tornado.web was imported. 2010-04-26 11:52:10 -04:00
benoitc
80e0acf9db patch RequestHandler so people know that they use tornado with gunicorn. 2010-04-22 18:45:22 +02:00
benoitc
e9eed6b6e9 fix import in tornado worker 2010-04-22 17:39:49 +02:00
Paul J. Davis
d14389cb68 Added support for Tornado.
Took less than a beer.
2010-04-15 21:20:52 -04:00