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
Randall Leeds
3c2533d122
Merge pull request #1039 from StevenMaude/fix-comment-typos
...
Fix comment typos
2015-05-27 09:34:19 -07:00
Steven Maude
ad07bccb4e
Fix comment typos
...
In wsgi.py
2015-05-27 14:29:12 +01:00
Berker Peksag
e1aa8068e4
Merge pull request #1033 from ccl0326/master
...
make graceful shutdown thread-safe
2015-05-23 15:49:20 +03:00
陈程龙
d9b89599cc
make graceful shutdown thread-safe
2015-05-23 19:00:38 +08:00
Berker Peksag
e6cf15ce78
Merge pull request #1037 from Starefossen/remote-addr-disambiguation
...
Document why REMOTE_ADD may not be the user's IP address
2015-05-22 05:01:21 +03:00
Hans Kristian Flaatten
85d857d711
Document why REMOTE_ADD may not be the user's IP
...
Gunicorn v19 removed functionality which updated `REMOTE_ADDR` to the value of
the `X-Forwared-For` header if received from a trusted upstream client. This
was a violation of RFC 3875 CGI Version 1.1, and was hence removed.
Close : #1035
PR-URL: #1037
Related: #633
Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@turistforeningen.no>
2015-05-21 23:05:49 +02:00
Benoit Chesneau
03e52954b8
issues and PR*s*
2015-05-20 14:47:38 +02:00
Benoit Chesneau
837e943f78
update CONTRIBUTING doc
...
Tell to open a new ticket instead of commenting an older one. It makes
difficult to track and apparently notifications are not received.
2015-05-20 14:35:47 +02:00
Benoit Chesneau
3a2c437902
Merge pull request #1031 from jhekkanen/1030-fix
...
Fix self.nr usage in ThreadedWorker so that auto restart works as expected
2015-05-20 12:56:22 +02:00
Jarmo Hekkanen
826ef2d151
Fix self.nr usage in ThreadedWorker so that auto restart works as expected
2015-05-16 00:36:55 +03:00
Benoit Chesneau
cc7459d953
Merge pull request #1027 from benoitc/fix/clean-gitignore
...
clean gitignore
2015-05-12 09:10:43 +02:00