1935 Commits

Author SHA1 Message Date
Randall Leeds
415956da23 Fix eventlet shutdown to actively shut down the workers. 2014-11-18 15:12:04 -08:00
Randall Leeds
fcba1a6c1c Merge pull request #770 from dwagon/731-umask
731 - Avoid creating world writable files
2014-11-17 19:03:01 -08:00
K Subramanian
d203d022f5 Add Note for async workers with Django
Django lazy loads URLConf during the first request.
2014-11-17 18:36:09 -08:00
Randall Leeds
3bffef06c2 Merge pull request #936 from minichate/nginx_signal_docs
Remove no-longer-true statement about matching Nginx signal handling
2014-11-12 21:17:54 -08:00
Randall Leeds
14bbd1cfce comment formatting 2014-11-12 13:06:02 -08:00
Randall Leeds
96a15b38a8 Merge pull request #931 from laterpay/feature/921-ignore-async-handle_request-socket-error
Feature/921 ignore async handle request socket error
2014-11-12 13:05:09 -08:00
Christopher Troup
73aac61945 Remove no-longer-true statement about matching Nginx signal handling 2014-11-12 15:01:50 -05:00
Jonas Maurus
fbc1e29c72 use six.reraise to amend the traceback 2014-11-12 09:50:10 +00:00
Jonas Maurus
d0f1ff659f fix #921 by passing socket.error on to the caller (where it will be ignored) 2014-11-11 10:13:09 +00:00
Stéphane Wirtel
ccb08b541d Merge pull request #929 from wong2/dev
propagate proxy_protocol_info to keep-alive requests correctly, fix #923
2014-11-06 07:58:13 +01:00
wong2
f8902a6837 propagate proxy_protocol_info to keep-alive requests correctly, fix #923 2014-11-06 14:48:16 +08:00
benoitc
4c601ce447 optimize the sync worker
This change optimize the sync worker when we only have to listen on one
interface. While I'm here, I fixed a long and unnoticed outstanding issue when
we were accepting on multiple interfaces (wonder if someone really use it), at
some point soe interfaces were skipped.
2014-10-25 11:58:28 +02:00
Berker Peksag
c152ce0dd0 Add a versionadded directive to the sendfile documentation. 2014-10-20 20:17:30 +03:00
benoitc
2f226acda4 fix method call. 2014-10-19 18:06:51 +02:00
benoitc
2849147f8a allows to enable/disable the use of sendfile()
fix #856
2014-10-19 10:57:42 +02:00
benoitc
cfc6dc778e gthread: improve accepting connections loop
make sure we stop accepting immediately when max connections is achieved.
2014-10-19 10:04:36 +02:00
benoitc
048dcf410c uses gunicorn.selectors when python < 3.4 2014-10-19 09:48:52 +02:00
Randall Leeds
02ca92d30a Merge pull request #919 from berkerpeksag/cleanup-scripts
Use tox in .travis.yml.
2014-10-18 17:12:42 -07:00
Berker Peksag
e84068b518 Use tox in .travis.yml.
This way we can avoid code duplication.

Also, this change makes tests faster due to ignoring the sdist step
and adds Python 3.2, 3.4 and PyPy 3 to build matrix.
2014-10-19 02:12:59 +03:00
Berker Peksag
b1b26c5f93 Add a news entry for #917. 2014-10-19 00:46:18 +03:00
Berker Peksag
9e36c54c3d Merge pull request #918 from menghan/remove-deprecated
Remove deprecated option --debug, fix #917
2014-10-17 12:01:01 +03:00
Menghan
51bd1b12a1 remove option --debug and update documents 2014-10-17 11:40:03 +08:00
Berker Peksag
bf3ef8f389 Add selectors module to gunicorn codebase.
Closes #886.
2014-10-16 15:44:10 +03:00
Randall Leeds
bb87633345 Merge pull request #916 from berkerpeksag/cleanup-manifest
Simplify recursive-exclude rules in MANIFEST.in.
2014-10-16 03:17:22 -07:00
Berker Peksag
9cbec279f3 Simplify recursive-exclude rules in MANIFEST.in. 2014-10-15 22:25:32 +03:00
Randall Leeds
f65066c0eb Merge pull request #913 from berkerpeksag/tweak-setup
Remove unused install_requires parameter in setup.py.
2014-10-14 17:32:17 -07:00
Benoit Chesneau
9966db109e Merge pull request #914 from berkerpeksag/remove-3.1-support
Python 3.1 is not supported anymore.
2014-10-14 15:23:02 +02:00
Berker Peksag
78fb66ee7e Python 3.1 is not supported anymore. 2014-10-14 15:27:46 +03:00
Berker Peksag
2cb6b682db Remove unused install_requires parameter in setup.py.
Also, renamed PyTest class to PyTestCommand and made
a couple cosmetic changes.
2014-10-14 15:23:15 +03:00
Berker Peksag
e8111b93ea Update pytest requirement.
This breaks Travis.

    pkg_resources.VersionConflict: (pytest 2.6.3 (/home/travis/virtualenv/python2.7.8/lib/python2.7/site-packages), Requirement.parse('pytest==2.6.1'))
2014-10-11 05:14:23 +03:00
Berker Peksag
890aca6c4b Update settings.rst header. Followup to 5536a5fd73fb18642365354ce00a369da0ffea03. 2014-10-03 16:46:43 +03:00
Berker Peksag
8b83a285cd Tweak max_requests_jitter docs a bit.
- Added a versionadded directive
- Added a news item
2014-10-03 16:42:12 +03:00
Jason Harvey
94d931956e Add documentation for max_requests_jitter. 2014-10-03 16:33:36 +03:00
Jason Harvey
d4e1bfe5bd Add max_requests_jitter configuration option. 2014-10-03 16:33:36 +03:00
Benoit Chesneau
27c75d5d75 Merge pull request #887 from jssjr/jssjr/statsd-prefix
Allow for statsd metrics to be prefixed
2014-10-03 08:57:53 +02:00
Benoit Chesneau
74ed83e5c5 Merge pull request #900 from bninja/fix-899
propagate proxy_protocol_info to keep-alive requests, fixes #899
2014-10-03 08:53:30 +02:00
Randall Leeds
4ea86dce40 Merge pull request #907 from collinanderson/specified
typo: in not specified
2014-10-02 18:36:34 -07:00
Collin Anderson
5558de3b35 typo: in not specified 2014-10-02 21:26:37 -04:00
Berker Peksag
b7c362ac1e Merge pull request #906 from collinanderson/six1.8.0
six 1.8.0 and gunicorn._compat
2014-10-03 03:48:36 +03:00
Collin Anderson
f2ba62bc10 six 1.8.0 and gunicorn._compat
closes #904 and #905
2014-10-02 17:00:03 -04:00
bninja
adf353f213 propagate proxy_protocol_info to keep-alive requests, fixes #899 2014-09-24 03:39:39 -07:00
Randall Leeds
b8291eff4f Merge pull request #897 from benoitc/fix-884
Fix `--check-config` usage. Refs #884.
2014-09-23 11:59:39 -07:00
Benoit Chesneau
c56a9ee266 Merge pull request #898 from benoitc/fix-896
Add documentation about gunicorn/config.py.
2014-09-23 10:12:40 +02:00
Berker Peksag
5536a5fd73 Add documentation about gunicorn/config.py.
Fixes #896.
2014-09-23 10:31:35 +03:00
Berker Peksag
9229320897 Fix --check-config usage. Refs #884. 2014-09-23 10:13:32 +03:00
benoitc
7f0c7c56e3 next version is 19.2
next version is 19.2. Also fix the setting.rst, regenerate it from
config.py .
2014-09-22 15:03:16 +02:00
Benoit Chesneau
c7ccd0d622 Merge pull request #892 from collinanderson/logconsole
Proposal: Log to console by default. #832
2014-09-22 14:44:31 +02:00
Collin Anderson
7be15d6334 Log to console by default. #832
Version 19 removed any logging by default. This logs everything to the
console by default.
2014-09-21 21:48:42 -04:00
Berker Peksag
901d8f94b3 Fix typos. 2014-09-21 09:32:43 +03:00
Berker Peksag
e0b3c42dd2 Merge pull request #894 from collinanderson/printstderr
sys.stderr.write -> print(msg, file=sys.stderr)
2014-09-16 23:03:07 +03:00