28 Commits

Author SHA1 Message Date
benoitc
66546d66df fix #1246 2016-05-02 15:04:30 +02:00
mtustin-handy
5c2cb816d0 Fix random outdent which makes gtornado worker unusable 2015-11-25 10:41:04 -05:00
Hiroyuki Shirakawa
b4e86ad73f Fixes #1135 2015-10-28 12:04:08 +09:00
keakon
5708d1d23b remove checking timeouts 2015-10-08 12:20:43 +08:00
陈程龙
d9b89599cc make graceful shutdown thread-safe 2015-05-23 19:00:38 +08:00
benoitc
9ec27c1ef7 support tornado 4.0
fix #771
2014-07-26 09:06:07 +02:00
benoitc
7b902a2378 fix #783 fix tornado worker with missing option
Gunicorn doesn't ovveride the WSGI headers with the X heaaders anymore.
2014-06-14 07:02:40 +02:00
benoitc
81241907ff switch QUIT and TERM signal
With this change, when gunicorn receives a QUIT all the workers are
killed immediately and exit and TERM is used for the graceful shutdown.

Note: the old behaviour was based on the NGINX but the new one is more
correct according the following doc:

https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html

also it is complying with the way the signals are sent by heroku:

https://devcenter.heroku.com/articles/python-faq#what-constraints-exist-when-developing-applications-on-heroku
2014-03-08 17:14:06 -08:00
keakon
e19af09d09 graceful stop for TornadoWorker 2013-11-05 07:16:59 +01:00
benoitc
84d9f4c604 don't pass ssl_options if there are any.
some versions of tornado fail when passing empty ssl options. This
change fix it.

fix #465
2013-01-06 08:12:40 +01:00
benoitc
1198cc2723 handle ssl connections.
gunicorn is now supporting ssl connections:

    $ gunicorn -w3 --certfile=server.crt --keyfile=server.key test:app

works with all supported workers
2012-12-14 10:22:05 +01:00
benoitc
b7b51adf13 allows gunicorn to bind to multiple address
Allows gunicorn to listen on different interface. It can be either ipv6,
unix or ipv4 sockets.

Ex:

    gunicorn -w3 -b 127.0.0.1:8001 -b 127.0.0.1:8000 -b [::1]:8000 test:app

fix #444
2012-12-14 10:18:39 +01:00
benoitc
4d70a526f2 fix typo 2012-07-13 18:13:19 +02:00
414nch4n
a42daa03ed fix tornado.wsgi.WSGIApplication calling error 2012-06-01 08:56:38 +02:00
Mazdak Rezvani
5d4fc56dcb Added support for max_requests for Tornado workers, and support for
disabling x_forwarded_for_header.
2012-03-16 05:39:33 +01:00
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