1568 Commits

Author SHA1 Message Date
Jeryn Mathew
b6f3cb8e7c Fix for issue #693
- Added changes to file read, as per review comments
2014-03-17 10:26:53 +05:30
Jeryn Mathew
e1e5d3638f Fix for issue #693
- Remodeled the logic to use imp module to validate the python
	  gunicorn config file
2014-03-15 12:16:18 +05:30
Jeryn Mathew
2e84d68edb Fix for issue #693
- Override older behavior of execfile_ with one with pyc patch
2014-02-06 13:18:58 +05:30
Jeryn Mathew
8b49de4ad2 Fix for issue #693
- Made changes to read and fetch code object from .pyc files.
  - Error message "Non-ASCII character '\xf3' in file" is resolved.
2014-02-06 13:12:31 +05:30
Benoit Chesneau
6e9644c5a6 Merge pull request #692 from xealot/691-raw_env-fix
fixes issue #691, raw_env config file parsing
2014-02-06 01:20:44 +01:00
Trey Long
dbf6c76ac1 fixes issue #691, raw_env config file parsing 2014-02-05 19:07:35 -05:00
Randall Leeds
3d0afc837e fix typo in logging.conf example 2014-02-04 19:55:07 -08:00
Randall Leeds
03c9ba369a Merge pull request #689 from rikva/patch-1
Update settings.rst
2014-02-04 14:06:58 -08:00
Rik
80198278ce Update settings.rst
Gevent version should be 0.13 at least, since Gunicorn needs the gevent.server support (also see: http://blog.gevent.org/2010/07/14/gevent-0-13-0-released/)
2014-02-04 10:11:16 +01:00
Randall Leeds
0226b2cd1f Clarify secure scheme header warning in deploy doc
Gunicorn doesn't restrict the X-Forwarded-For header, only the
scheme header.
2014-02-04 00:26:03 -08:00
Randall Leeds
f375f929de Regenerate settings.rst 2014-01-30 16:50:08 -08:00
Randall Leeds
5d13659f0e Documentation formatting 2014-01-30 16:49:47 -08:00
Randall Leeds
1f7d3429c2 Add documentation for nginx X-Forwarded-*
Fix #571
2014-01-30 16:30:58 -08:00
Randall Leeds
87083c294a Merge pull request #687 from benoitc/feature/no_active_idle-2
Feature/no active idle 2
2014-01-30 15:38:44 -08:00
Adrien CLERC
d76bab4d71 Use a dynamic timeout to wait for the optimal time. 2014-01-30 15:32:02 -08:00
benoitc
89a178ac3e fix python3 support 2014-01-30 15:29:17 -08:00
Randall Leeds
d4f2481384 Merge pull request #682 from tilgovi/feature/526
Add --reload option for code reloading
2014-01-29 14:42:41 -08:00
Randall Leeds
e41e920a7c Add note about paste and preload for reloader 2014-01-29 14:34:00 -08:00
Randall Leeds
035740a340 Merge pull request #685 from malthe/include-access-log-in-syslog-handler
Also include access log in the syslog handler.
2014-01-28 02:11:25 -08:00
Malthe Borch
0f5d9df8b4 Rename to just "error". 2014-01-28 11:05:41 +01:00
Randall Leeds
98022dffbb Include tz offset in access log
Fix #683
2014-01-27 22:54:03 -08:00
Randall Leeds
08594e6407 typo 2014-01-27 20:20:49 -08:00
Malthe Borch
764d9d439a Also include access log in the syslog handler. 2014-01-24 17:41:05 +00:00
Kenneth Reitz
98b1fa5a27 Merge pull request #684 from lkucharski/master
fix two misspellings
2014-01-23 10:53:31 -08:00
Łukasz Kucharski
2b7c30d69f fix two misspellings 2014-01-23 10:42:55 +01:00
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