Benoit Chesneau
af4b1b9755
Merge pull request #946 from berkerpeksag/fix-namerror
...
Fix NameError in gunicorn/workers/gthread.py.
2014-11-24 23:06:59 +01:00
Benoit Chesneau
859a4b4bb4
Merge pull request #945 from berkerpeksag/flake8-cleanup
...
Use more Pythonic style in gunicorn/.
2014-11-24 23:06:34 +01:00
Matt Long
71f7d353f0
Use sent instead of response_length in access log
...
Previously, resp.response_length is used for the b atom of the access
log formatter. If the application does not set a content-length header,
response_length is left as `None`, resulting in b being set to the
fallback "-". resp.sent is a more reliable way to determine the number
of bytes in the response body.
2014-11-24 23:03:47 +02:00
Berker Peksag
6086e31d07
Fix NameError in gunicorn/workers/gthread.py.
2014-11-24 18:45:00 +02:00
Berker Peksag
56e7d15fb8
Use more Pythonic style in gunicorn/.
2014-11-24 18:43:21 +02:00
BFriedland
05c6977122
Fixed typos
2014-11-22 14:18:56 -08:00
Randall Leeds
1b0901d661
Set logconfig default to paster more trivially
...
Rather than using fileConfig twice and risking different defaults
and behavior around disable_existing_loggers (ref #902 ), simply
set the default logging config file to be the paster config file
if it has a logger section and let glogging set up the rest.
2014-11-19 15:26:26 -08:00
Randall Leeds
2aabf48317
PEP8
2014-11-18 15:12:04 -08:00
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
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
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
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
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
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
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
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
Berker Peksag
5536a5fd73
Add documentation about gunicorn/config.py.
...
Fixes #896 .
2014-09-23 10:31:35 +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
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
Collin Anderson
bfae0c91de
sys.stderr.write -> print(msg, file=sys.stderr)
2014-09-16 15:38:56 -04:00
Scott Sanders
ed293d30e9
Don't import all of re
2014-09-16 08:38:05 -04:00
Scott Sanders
9f4861c4cf
Implement statsd prefix sanitization
2014-09-16 08:34:38 -04:00
Scott Sanders
770c8219d2
Sanitize the statsd prefix
2014-09-16 08:34:38 -04:00
Scott Sanders
a7c6a4fd20
Update docs to indicate a . is added
2014-09-16 08:15:58 -04:00
Scott Sanders
cb92b5bba7
Move the prefix assignment out of the try block for socket creation
2014-09-14 13:42:18 -04:00
Scott Sanders
51bd154c99
Fix whitespace
2014-09-14 13:41:52 -04:00
Scott Sanders
eb3bf34066
Prefix statsd metric strings with the prefix
2014-09-12 14:57:56 -04:00
Scott Sanders
34b56d5973
Add the statsd-prefix config option
2014-09-12 14:57:46 -04:00
Collin Anderson
0d3045bb41
cleaned some code
2014-09-10 20:34:22 -04:00
Collin Anderson
03fbe9429d
clean whitespace
2014-09-10 09:52:12 -04:00
Randall Leeds
0e31ed3dde
Merge pull request #865 from benoitc/fix/863
...
fix race condition error
2014-09-08 23:25:26 -07:00
benoitc
34eb1b63f9
only get last update of the worker once when checking oldest
...
spotted by @tilgovi, a race condition is possible when making 2
consecutive calls to the last_update function, so only get it once.
2014-09-09 07:23:56 +02:00
root
f7151821c6
arbiter: reopen log files first then signal workers
...
Workers may run under different uid/gid and don't have permission
to create log files. After master opens log files and makes them
rw-able when default umask is used, workers will be able to open
them upon receiving USR1.
2014-09-04 15:47:14 -07:00
benoitc
4fe426cd66
fix race condition error
...
When the worker exited the tempfile is not available anymore so we can't
get the last update and calculate the dynamic timeout introduced in
d76bab4d716fed3f965fbde4ba1a1bba975f03d1 .
This changes fix it by catching the IO error.
fix #863
2014-08-30 09:41:08 +02:00
Ben Phillips
6e2de5ab6e
Tidy up comments
2014-08-19 07:48:31 +01:00
benoitc
717460b336
bump to 19.1.1
2014-08-16 13:17:54 +02:00