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
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
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
Benoit Chesneau
4185b2bd27
clean gitignore
...
people should be encouraged to use a global gitignore file.
https://help.github.com/articles/ignoring-files/
related to #1007
2015-05-12 08:55:25 +02:00
Berker Peksag
95b5f78ecb
Backport urlparse.urlsplit from Python 2.7 to Python 2.6.
...
urlsplit doesn't reject invalid IPv6 addresses in Python 2.6.
2015-05-10 10:40:32 +03:00
Berker Peksag
945d2ecfc3
Parametrize invalid request tests.
2015-05-09 21:49:10 +03:00
Randall Leeds
72c8be56fc
Add test for #1023
2015-05-09 20:46:31 +03:00
Berker Peksag
b951175c66
Raise InvalidRequestLine instead of ValueError if the line contains malicious data.
...
Closes #1023
2015-05-09 19:12:58 +03:00
Berker Peksag
a7354cf8fe
Merge pull request #1010 from krallin/fix-statsd-py3
...
Fix statsd Logging in Python 3
2015-04-30 15:54:48 +03:00
Thomas Orozco
410bcfa6e1
Fix statsd logging to work on Python 3
...
Bytes must be passed to socket.send.
Update tests to ensure an actual socket is used, so that errors like
this can be caught in unit tests in the future.
2015-04-30 14:07:03 +02:00
Randall Leeds
5c98b3deb2
Merge branch 'toby-sullivan-hs-disable-sendfile-fix'
2015-04-29 17:40:50 -07:00
Toby Sullivan
11ee135b40
Fix argument to disable sendfile
2015-04-29 17:40:31 -07:00
Berker Peksag
2e0eb074fe
Merge pull request #1019 from mgalgs/patch-1
...
design.rst: grammar
2015-04-29 09:17:52 +03:00
Mitchel Humpherys
52bfb7a0e7
design.rst: grammar
...
Currently, we introduce this document as a description
of "an" architecture of Gunicorn, which makes it sound
like this document describes one of many Gunicorn
architectures, which doesn't make a lot of sense.
Clarify the grammar by introducing the document as a
description of "the" Gunicorn architecture.
2015-04-28 22:04:48 -07:00
Berker Peksag
afdcfc6a63
Merge branch 'pr/1013'
2015-04-22 16:42:45 +03:00
Vlad Dragos
342512a128
Add the 'gthread' worker to the gunicorn.workers.SUPPORTED_WORKERS dictionary
...
Fixes #1011 .
2015-04-22 16:41:45 +03:00
Berker Peksag
ba92af9acb
Merge pull request #1004 from ryanpetrello/master
...
Retry socket binding up to five times upon EADDRNOTAVAIL.
2015-04-08 11:38:45 +03:00