1543 Commits

Author SHA1 Message Date
Randall Leeds
e106bf82a8 Add --reload option for code reloading
Fix #526
2014-01-15 19:08:34 -08:00
Randall Leeds
6ed6b1399e docs typo -- fix #678 2014-01-14 13:53:15 -08:00
Randall Leeds
b0fd632695 Merge pull request #681 from gnotaras/enhance-rpm
Enhance RPM
2014-01-14 00:04:31 -08:00
George Notaras
64f555eb7e Improved the documentation that is packaged in the RPM.
Until now, only the documentation in source form was packaged.
This changeset improves the RPM generator so that the compiled HTML
version of the documentation is packaged. Also, other informative
documents (README, LICENSE, NOTICE, THANKS) and an example server
configuration file have been included.

Finally, the Sphinx documentation's conf.py has been improved so
that it is easier to compile the docs using the default theme.
2014-01-13 03:23:38 +02:00
George Notaras
f26395e02e Set RPM group to the generic 'System Environment/Daemons'. 2014-01-13 03:14:00 +02:00
Benoit Chesneau
26a796f200 Merge pull request #670 from gnotaras/bugfix-request-line-check
Fixed the request line length check.
2014-01-01 07:48:44 -08:00
Randall Leeds
56b5f4038f set wsgi.multithread to True for async workers
Also simplifies the environment handling in the gevent_pywsgi
server so that it also has this key. An added side effect is
that the gunicorn FileWrapper gets set for the gevent_pywsgi
worker, too.

Fixes #486
2014-01-01 16:42:56 +01:00
benoitc
640bf42206 don't send wsgi.errors twice and remove spurious print 2014-01-01 16:27:06 +01:00
benoitc
ee08ac8644 make sure to redirect wsgi.errors when needed
By if the options ` --error-logfile` is set to '-' then wsgi.errors are
returned to sys.stderr, if any log file is passed either using the
log-config file or the option, Errors are written to the files.

By default no error is returned.
2014-01-01 16:09:47 +01:00
benoitc
03a6136083 add a quick test to make sure we get the sys.stderr 2014-01-01 15:52:44 +01:00
benoitc
92c4c58208 fix handle_eror, find the cfg object. 2014-01-01 15:02:28 +01:00
benoitc
ef329a8f73 fix logging.conf exampple 2014-01-01 14:55:13 +01:00
benoitc
24bfae8508 allows possibility to set the driver used in syslog for unix sockets
This changes allows a use to set the driver used to send the data over a
unix socket. 'dgram' for a dgram driver or 'stream' for a stream driver.
'stream' is the default. The change is documented in the settings
documentation.

fix #671
2014-01-01 14:53:45 +01:00
benoitc
a3e7b68119 make it explicit that we only send gunicorn logs to syslog.
follows suggestion in #548
2014-01-01 14:53:45 +01:00
benoitc
41523188bc don't try to redirect stdout/stderr to the logfile.
Logging to a logfile should be explicit and gunicorn should not try to
be smarter here. Partially fix #591
2014-01-01 14:53:45 +01:00
benoitc
141aa9d4cf don't propagate logs
fix #574
2014-01-01 14:53:45 +01:00
benoitc
a0ccfa0c4f modify log_file option
Gunicorn should generally only bother writing its own log and let
the application handle the way it want to log its own errors.

Now the log_file option will be overriden by the gunicorn options
`--error-logfile` and `--access-logfile` if they are given.
2014-01-01 14:53:40 +01:00
benoitc
5fb4b49a91 dont' override SERVER_* by the Host header
Gunicorn shouln't override the SERVER_* by the Host header. The client
will take care about it during the URL reconstruction if needed.

Since the spec don't support unix sockets, Gunicorn is using the HOST
heeader when available to create viable SERVER_* if possible so the
application and framworks will be happy. When the Host Header is not
available (SocketPath, '') is returned.

fix #628
2014-01-01 14:05:59 +01:00
George Notaras
2d7eb3dc04 Added extra valid request (099) and test (send_special_chunks).
``send_special_chunks`` sends the request data in two chunks, one having a length of 1 byte, which ensures there is no CRLF, and a second chunk containing the rest of the request data. Practically, this forces ``gunicorn.http.message.Request.read_line()`` to get the full request data with two buffer reads and reveal possible bugs related to the internal buffer mechanism. See #670 for more information.
2013-12-30 00:14:46 +02:00
benoitc
c487368129 fix the correct remote address
The remote address should return the direct client addr not a forwarded
header.

This is a breaking change. The main problem with such changes is the way
the application or framework will handle the URL completion. Indeed most
of them are only expecting a TCP socket.

fix #633
2013-12-27 16:18:21 +01:00
benoitc
776f315e41 fix whitespaces 2013-12-27 15:39:33 +01:00
benoitc
1e49846ae5 fix handle_errors 2013-12-27 11:44:21 +01:00
Dariusz Suchojad
5fb61cb841 Added support for more options to ssl.wrap_socket 2013-12-26 14:21:38 +01:00
benoitc
7d10d8638f fix sendfile with SSL 2013-12-26 14:14:48 +01:00
benoitc
28d6d4be42 add missing cli = --x-forwarded-for-hdr option 2013-12-26 14:14:30 +01:00
Benoit Chesneau
824b540fcb Merge pull request #642 from georgexsh/forward_ips_cli
set ForwardedAllowIPS via cli
2013-12-26 04:59:17 -08:00
benoitc
26a2e104cf fix typo 2013-12-26 13:54:35 +01:00
Benoit Chesneau
3c659558f2 Merge pull request #649 from hongqn/gevent-patch-early
Run worker's setup earlier than set num_workers
2013-12-26 04:50:46 -08:00
Raphaël Slinckx
f1e2073047 Make WorkerTmp accept a configurable tmp dir 2013-12-26 13:47:34 +01:00
benoitc
f7d9979d5b fix doc for rtd 2013-12-26 13:42:17 +01:00
benoitc
77a30d3671 ease the doc. test with the default rtd theme 2013-12-26 13:19:36 +01:00
Benoit Chesneau
9667cc6f7f Merge pull request #666 from ipetrov/correct_docs
Small changes at docs
2013-12-26 04:19:09 -08:00
benoitc
9d972a1d6a fix tests under py3 2013-12-26 13:06:09 +01:00
benoitc
95efe1b7d2 add worker_int callback
fix #516
2013-12-26 12:26:07 +01:00
Benoit Chesneau
5625dbcfcd Merge pull request #667 from spladug/proxy-protocol-allow-star
proxy_allow_ips: Allow proxy protocol if "*" specified.
2013-12-26 02:57:47 -08:00
benoitc
fdccb61616 use import_module instead of our own hack to import the module 2013-12-26 11:51:18 +01:00
benoitc
a397d90774 don't depend on entry point for internal classes.
We don't have to depend on entry points when loading suppoorted workers
nad extensions, instead use the absolute path to load the class.

fix #259
2013-12-26 11:33:05 +01:00
Benoit Chesneau
9dc5d685c3 Merge pull request #665 from askedrelic/feature/tweak-banner-readability
Make frontpage banner text easier to read
2013-12-22 03:04:12 -08:00
George Notaras
b9fe01ca2c Fixed the request line length check. 2013-12-19 03:18:18 +02:00
Neil Williams
9d9e547316 proxy_allow_ips: Allow proxy protocol if "*" specified.
This makes proxy_allow_ips symmetrical with forwarded_allow_ips and is
useful in the same situations.
2013-12-17 13:48:27 -08:00
Igor Petrov
708bb840a1 Split access_log_format specifiers description into multiply lines
Correct sphinx-build error: source/settings.rst:762: ERROR: Inconsistent literal block quoting.
2013-12-14 01:43:16 +04:00
Matt Behrens
a906910a08 make banner h1 text easier to read 2013-12-12 15:00:45 -08:00
benoitc
69ab24b589 fix examples/nginx.conf 2013-12-11 11:19:35 +01:00
benoitc
fd3180445f django run_command: remove addr once parsed.
fix #577
2013-12-11 11:16:25 +01:00
benoitc
35382f24bb bump to gunicorn 18.2 2013-12-11 10:00:13 +01:00
benoitc
59bd9a6a9a deprecate the paste command. 2013-12-11 09:54:03 +01:00
benoitc
2a09c916a7 improve systemd conf 2013-12-11 09:50:24 +01:00
benoitc
047ef65afc fix doc
fix #656
2013-12-11 09:33:01 +01:00
Benoit Chesneau
d0c30a1992 Merge pull request #659 from olt/fix/657
merge duplicate EventletWorker.init_process method (fixes #657)
2013-12-11 00:03:51 -08:00
Benoit Chesneau
3601f20e11 Merge pull request #653 from alasdairnicol/patch-1
Use lowercase 'true' in example config to be consistent
2013-12-11 00:03:16 -08:00