1422 Commits

Author SHA1 Message Date
benoitc
b3d85a0b67 optimise response connection header check
Get the status code from the response once so we can use it to check the need
for the connection header later without parsing the string each time we need it.
2013-08-12 11:39:11 +02:00
Dima Barsky
9f4cf4181f responses 1xx, 204 and 304 should not force the connection to be closed
Only these types of responses are allowed to have empty body

fix #581
2013-08-12 11:17:20 +02:00
Randall Leeds
fa9d028d09 After closing for error do not keep alive
Raise a StopIteration rather than returning so that the keep-alive
loop is terminated. If gunicorn has closed the socket there is no
sense in trying to read another request and it may cause spurious
EBADF errors to try.
2013-08-07 19:57:56 -07:00
Randall Leeds
90fb09f618 Don't reload the paster app when run with pserve
Using gunicorn with paster command line causes the application to
load before gunicorn. In this case, there is no choice but to preload
the application. Document this fact.

Fixes #528.
2013-08-06 03:29:58 -07:00
Randall Leeds
63600aa6b3 [ggevent] Don't die when logging requests
Some requests, such as websocket requests, may not have headers.
2013-08-06 02:56:48 -07:00
Randall Leeds
68b48b9694 Forward-compatibility for gevent graceful shutdown
This commit closes the loop on fd6c712.

Aforementioned commit fixed observable problems in my testing with
gevent 1.0 release candidates but the explanation given at the time
was curiously bogus. It came from a misreading of pools and servers
as used in the ggevent worker.

With this change, both versions of gevent should support graceful
and non-graceful shutdown.
2013-08-06 02:56:47 -07:00
Randall Leeds
33f7c96db6 [ggevent] Stop quickly and cleanly on ppid change
This change should improve interaction with reloaders and ensure that
ports are not stuck open if the arbiter gets a hard kill signal or
otherwise exits during any graceful or non-graceful shutdown.
2013-08-06 02:56:47 -07:00
Randall Leeds
5afb03e6f4 Merge pull request #583 from pypeng/resp-maybe-none
resp maybe None when pre_request raises exceptions
2013-08-06 01:48:15 -07:00
Randall Leeds
cbc55843bd typo 2013-08-05 22:19:02 -07:00
Randall Leeds
0c34c4213b typo 2013-08-05 22:04:53 -07:00
Randall Leeds
ec2ee0b127 Support for python config file option in paster
It is now possible to specify a file with "config" as an application
configuration key in a paste deploy configuration file. This allows
paster applications to use the full range of gunicorn settings even
when using paste/pserve rather than gunicorn_paster.

Fixes #540.
2013-08-05 22:04:43 -07:00
py
b4c286bc81 resp maybe None when pre_request raise exceptions 2013-07-30 17:27:51 +08:00
benoitc
53c4484bb8 fix null timmeout and gunicorn.
if no timeout is given the synchronous worker will never wait and will
use the CPU for nothing. This minimal timeout prevent it.

fix #567
2013-07-12 10:04:52 +02:00
benoitc
546c2e71fd add a verssionninbg not to the doc as well. 2013-07-10 08:14:07 +02:00
benoitc
2a8dd83d13 link 17.5 change to latest#1
Due to an error of my part the changelog  in the odocumentation isn't
available for the 17.5 tag. So for now link it to the latest update.
2013-07-10 08:11:45 +02:00
benoitc
3c0ea0cad1 addd 17.5 changelog to main news page
forgot to update this page.

fix #566
2013-07-10 08:09:00 +02:00
Randall Leeds
460b757a29 Merge pull request #564 from jvolkman/master
Remove an unmatched leading quote from the beginning of the default access log format string
2013-07-03 17:01:23 -07:00
Jeremy Volkman
b8a22975a4 Removes unmatched leading quote from the beginning of the default access log format string 2013-07-03 15:41:48 -07:00
benoitc
3895c360be wit for read the doc update 2013-07-03 12:54:30 +02:00
benoitc
cff300f0e3 R17.5 -> 17.5 2013-07-03 12:20:43 +02:00
Randall Leeds
7e1d5d729d Exclude .pyc and .pyo in MANIFEST.in 2013-07-03 02:57:09 -07:00
benoitc
b21ddb20d5 point to R17.5 changes 2013-07-03 11:02:57 +02:00
Randall Leeds
1b96a9b853 Merge pull request #546 from jet-sun/patch-1
Update install.rst for Debian wheezy release
2013-07-03 01:34:27 -07:00
benoitc
cf0527f5ee bump to 17.5
Not: With this release, the versionning of Gunicorn is changing.
Gunicorn is stable since a long time and there is no point to release a
"1.0" now. It should have been done since a long time. Also from the
beginning we have only 2 kind of releases:

- major release: releases with major changes or huge features added
- interval releases: fixes and minor features added

So from now we will apply the following versionning

    R<major>.<interval>

for example R17.5 means we are relasing an interval release on the 17th
major version.
2013-07-03 10:10:30 +02:00
benoitc
9c0d1a0cad add R17.5 changelog 2013-07-03 09:59:18 +02:00
benoitc
012d60f1e0 update license headers 2013-07-03 09:47:15 +02:00
Randall Leeds
2978c45051 fix rpm for faf2cc5
Thanks @daybarr
2013-07-03 00:42:30 -07:00
benoitc
bb79cdcc36 quick note about preloaded applications 2013-06-29 06:49:32 +02:00
benoitc
d49f9046c5 document a little more the signals handling 2013-06-29 06:39:37 +02:00
benoitc
cd90653fe3 fix non django application loading
fix error introduced in 423e203db944ea5b250e2816cbeb9c4741cc736f.
2013-06-29 06:25:18 +02:00
benoitc
ba945bd635 fix link syntax 2013-06-29 06:16:17 +02:00
benoitc
a55bfd5b0c fix signals doc file extension 2013-06-29 06:12:34 +02:00
benoitc
434008419a quick doc fixes 2013-06-29 06:09:52 +02:00
benoitc
e5242d4fde add signals doc
add a brief description of the signals handled by Gunicorn.

fix #319
2013-06-29 06:04:51 +02:00
benoitc
d29febdb28 fix "Expect: continue-100" support on python 3
only bytes should be passed to the socket.

fix #560
2013-06-29 05:22:27 +02:00
benoitc
638ad129c8 fix doc abput python 3 support 2013-06-29 05:20:43 +02:00
benoitc
b6569361e9 add CONTRIBUTING doc
fix #473
2013-06-28 23:28:34 +02:00
Benoit Chesneau
a8ecbd5764 Merge pull request #551 from gauravkumar37/master
Fix to read the settings module specified while running via gunicorn command
2013-06-24 01:25:17 -07:00
benoitc
8dbfab5556 fix syslog in 2.6
socktype is only supported in 2,7 and sup.

fix #541
2013-06-24 09:39:43 +02:00
benoitc
4e0ffa0bd1 add Moriyoshi Koizumi to THANKS 2013-06-24 09:27:23 +02:00
Moriyoshi Koizumi
f5847a2a52 give the initial global_conf to loadcontext to initialize the context properly. 2013-06-24 09:26:59 +02:00
Randall Leeds
3fcd1b969c Add niedbalski to THANKS 2013-06-23 10:59:15 -07:00
Randall Leeds
e6c120ffea Merge pull request #552 from niedbalski/master 2013-06-23 10:56:25 -07:00
Jorge Niedbalski R
a716285ed0 Added coverage for get_default_config_file, also a test for default config overrides 2013-06-22 07:14:08 -07:00
Jorge Niedbalski R
c218792fa4 prevent call get_default_config_file if args.config exists 2013-06-22 06:48:01 -07:00
Jorge Niedbalski
cf6e765323 [gunicorn] added ``gunicorn.conf.py`` as default in case of no -c is specified 2013-06-21 15:30:31 -03:00
Randall Leeds
e255808012 Merge pull request #556 from seatgeek/post-init
Rename post_init for greater clarity
2013-06-20 17:55:24 -07:00
Philip Cristiano
dcfe825346 Rename post_init for greater clarity
Makes sense if you saw what it does, less if you just read the config option.
2013-06-20 19:40:03 -04:00
Benoit Chesneau
128b5a8901 Merge pull request #553 from romabysen/master
Add Upstart deployment example, remove Upstart from faq.
2013-06-20 16:39:31 -07:00
Randall Leeds
857e216e19 add Philip Cristiano to THANKS 2013-06-20 16:02:46 -07:00