Vihang D
8de5eb9b15
Fixed documentation for WORKERCLASS
2015-08-25 10:55:50 +05:30
Benoit Chesneau
a132ca97c8
Merge pull request #1078 from preo/reduce-arbiter-noise
...
Only log '[num] workers' message when it changes.
2015-08-19 21:02:52 +02:00
Robert Estelle
e028710872
Make last logged worker count an explicit instance var.
2015-07-23 18:14:02 -04:00
Benoit Chesneau
89562c776e
Merge pull request #1088 from benoitc/fix/905
...
don't close the unix socket when the worker exit
2015-07-23 23:50:45 +02:00
benoitc
64a5b5cdf3
don't close the unix socket when the worker exit
...
When the worker was exiting, eventlet is closing the listening socket in th
worker. Since the socket instances are shared, this was also removing the unix
socket on close. This change make sure that the socket can only be closed by
its parent (where the socket have been bound).
While I'm here, also make sure we don't use any blocking function in eventlet
while switching).
fix #965
2015-07-22 06:22:24 +02:00
Robert Estelle
6f6ec92c4e
Store last logged worker count.
...
This is easier and safer than only logging when we detect that
self.WORKERS has changed or that `spawn_worker` or `kill_worker` has
been done.
2015-07-19 16:09:27 -04:00
Robert Estelle
09357ed3c4
Only log '[num] workers' message when it changes.
...
Otherwise when debug logging is on, the message prints every second even
with no system activity.
2015-07-19 15:56:58 -04:00
Slava Shklyaev
0d86a9094d
Improve markup of settings.rst
2015-07-15 04:10:15 +03:00
Berker Peksag
725f5cdeb1
Merge pull request #1083 from benoitc/travis-use-cache
...
Use travis cache
2015-07-14 15:18:52 +03:00
Berker Peksag
97428ed083
Merge pull request #1082 from benoitc/travis-container-based
...
Use the travis container-based infrastructure
2015-07-14 01:40:42 +03:00
Randall Leeds
e2a3d52a79
Use travis cache
2015-07-13 14:43:10 -07:00
Randall Leeds
ec84c80c75
On pypy3 IOError is not OSError
2015-07-13 14:32:01 -07:00
Randall Leeds
c054bddd1a
Use the travis container-based infrastructure
2015-07-13 12:52:52 -07:00
Berker Peksag
9d13c68a71
Fix tox format.
...
tox is a joke.
2015-07-13 15:22:20 +03:00
Berker Peksag
caf7a1946d
Install mock 1.0.1 on Python 2.6.
...
Fixes #1081
2015-07-13 15:16:01 +03:00
Benoit Chesneau
f5a2942d8a
Merge pull request #1080 from malept/clarify-pythonpath-docs
...
Clarify pythonpath setting description
2015-07-13 11:04:57 +02:00
Mark Lee
a33f6ea602
Clarify pythonpath setting description
...
Show that setting multiple paths requires using a comma-separated list.
2015-07-12 18:13:17 -07:00
Berker Peksag
ec3664dd30
Merge pull request #1068 from slava-sh/836-add-config-type-prefix
...
Prefix config file with its type
Fixes #836
2015-07-09 10:59:29 +03:00
Randall Leeds
d971eb4464
Merge pull request #1042 from brijeshb42/master
...
Updated gunicorn/pidfile.py
2015-07-08 23:33:31 -07:00
Brijesh Bittu
db786ce90e
Removed or 0
...
Removed `or 0` to raise `ValueError` for empty pidfile or pidfile with invalid contents.
2015-07-09 11:44:14 +05:30
Brijesh Bittu
68a944088e
Update pidfile.py
...
Return directly in the `except` instead of checking again for zero (as suggested by @benoitc and @tilgovi)
2015-07-09 10:38:14 +05:30
Benoit Chesneau
27df1339ce
Merge pull request #1071 from wosc/1061-log-uri
...
Include request URL in error message.
2015-07-08 20:55:34 +02:00
Berker Peksag
b5d188422e
Tweak some examples.
...
* Return bytes in Python 3
* Activate wsgiref.validate.validator
* Remove unused imports
2015-07-08 13:53:19 +03:00
Berker Peksag
dddfcb2826
Fix test_logger in Python 3.2.
2015-07-08 12:38:14 +03:00
Berker Peksag
da37bcfebe
Adda test case for #1069 .
2015-07-08 12:16:09 +03:00
Berker Peksag
117ef10176
Add Python 3 support to _get_user().
2015-07-08 12:15:38 +03:00
Wolfgang Schnerring
79011d0c4a
Include request URL in error message.
...
Fixes #1061 .
2015-07-08 10:18:26 +02:00
Slava Shklyaev
531133615e
Prefix config file with its type
2015-07-08 09:21:32 +03:00
Viacheslav Biriukov
5f3dc8ed2b
getting username from basic auth header for access logs
2015-07-07 23:32:13 +03:00
Randall Leeds
1864a3c779
Merge pull request #1064 from berkerpeksag/tests-cleanup
...
Tests cleanup
2015-07-07 12:36:54 -07:00
Benoit Chesneau
72a8e2940d
Merge pull request #1066 from urbaniak/gevent-python3
...
add support for gevent on python3
2015-07-04 10:17:52 +02:00
Krzysztof Urbaniak
66a0fdfd4f
add support for gevent on python3
2015-07-04 02:38:54 +02:00
Berker Peksag
31ea81f19b
Rename statsd test file to test_statsd.py.
2015-07-03 07:51:04 +03:00
Berker Peksag
9475e2625e
Rename test files.
2015-07-03 07:46:22 +03:00
Berker Peksag
295ca8ccaf
Use six.StringIO in test_statsd.py.
2015-07-03 07:43:44 +03:00
Berker Peksag
7fff5afa39
Minor cosmetic fixes.
2015-07-03 07:43:22 +03:00
Berker Peksag
436c9872a2
Use a pytest fixture in test_default_config_file.
2015-07-03 07:42:56 +03:00
Berker Peksag
a0f05555aa
Silence a py.test warning.
2015-07-03 07:41:53 +03:00
Berker Peksag
2af9468940
Parametrize valid request tests.
2015-07-03 07:41:24 +03:00
Berker Peksag
882e00f6b5
Use types.SimpleNamespace where appropriate.
2015-07-03 07:40:32 +03:00
Berker Peksag
337900037f
Convert tests to use py.test assertions.
...
Closes #950
2015-07-03 07:38:36 +03:00
Berker Peksag
d478968d59
Merge pull request #1052 from jaingaurav/oserror
...
Catch OSError as well as ValueError on race condition
2015-06-22 13:41:48 +03:00
Gaurav Jain
eed65c63f1
PEP8 fixes
2015-06-22 03:10:52 -07:00
Gaurav Jain
09007c7f0a
Catch OSError as well as ValueError on race condition
...
The fix for issue #863 was incomplete as both OSError or ValueError could be
raised by os.fstat(). Thus we need to catch both types of exceptions
2015-06-22 03:10:30 -07:00
Benoit Chesneau
a9531c9714
Merge pull request #1048 from carljm/nginx-host
...
Update example nginx configs to require Host match.
2015-06-16 13:36:40 +02:00
Carl Meyer
2169b044d6
Update example nginx configs to require Host match.
2015-06-15 16:59:34 -06:00
Brijesh Bittu
80e93b9c55
Updated gunicorn/pidfile.py
...
Added a try block to convert the contents of the `pidfile.py` if it can be converted to integer or not. If not, then `wpid` is assigned 0 and the `validate` function returns as usual. If the pidfile has a valid int, the function continues to kill the process as before.
2015-06-04 12:48:03 +05:30
Berker Peksag
5a8b9555da
Tweak markup of the sendfile documentation a bit.
2015-05-29 06:52:19 +03:00
Berker Peksag
33bcd59092
Generate the settings document after 11ee135b40439259816b2764679249323a489ca9.
2015-05-29 06:48:33 +03:00
Berker Peksag
308f10f398
Fix typo and tweak markup.
2015-05-29 06:46:28 +03:00