2530 Commits

Author SHA1 Message Date
Randall Leeds
06e252f23e
Merge pull request #1705 from confiq/master
Better docs for statsd prefix
2018-02-20 11:01:57 -08:00
Edward Betts
fc64a43ec6 Correct spelling mistakes. 2018-02-19 22:00:41 +03:00
Benoit Chesneau
8e479865d5
Merge pull request #1708 from EdwardBetts/patch-1
Handle the case where module.__file__ is None.
2018-02-19 17:25:03 +01:00
Edward Betts
0f527a01f4
Handle the case where module.__file__ is None.
Fixes #1058
2018-02-19 12:42:41 +00:00
Igor Konforti
528d629806 link to more config added 2018-02-19 13:55:21 +02:00
Igor Konforti
aa9562624d less text is more... 2018-02-18 19:35:53 +02:00
Igor Konforti
992eaaac24 missing prefix for the statsd 2018-02-16 18:18:00 +02:00
Randall Leeds
d32f4ca325
Merge pull request #1651 from ant1g/fix/1645-gevent-handle_usr1
Make the gevent workers handle the usr1 signal by deferring to a new greenlet
2018-01-25 14:40:56 -08:00
Alexandre Conrad
34527aa3ba Temporarily disable code coverage reporting (#1685)
Closes #1662
2018-01-22 16:29:11 +03:00
Jacob Eiting
f12ef22281 Handle UnicodeDecodeError in _get_user() (#1684)
Fixes #1683
2018-01-18 04:29:25 +03:00
Berker Peksag
76eaa0805b Fix various warnings and errors reported by pylint 2018-01-11 09:59:31 +03:00
Berker Peksag
249783567f Drop prospector; use pylint directly
Fixes #1674
2018-01-11 09:59:31 +03:00
Randall Leeds
b07532be75 Forbid contradictory secure scheme headers
When a request specifies contradictory secure scheme headers, raise a
parse error.
2018-01-10 12:10:35 -08:00
Benoit Chesneau
5c92093219
Merge pull request #1672 from andywilco/avoid_issetugid
Avoid needlessly triggering true return from issetugid on MacOSX
2018-01-07 18:22:05 +01:00
Andy Wilcox
32992a88f9 Avoid needlessly triggering non-false return from issetugid on MacOSX 2018-01-03 08:15:17 -08:00
Martin Broadhurst
6171ac4885 Add --reuse-port to make use of SO_REUSEPORT optional (#1669)
Fixes #1603
2018-01-02 20:25:26 +03:00
YuppY
5953148573 Do not strip leading slash from path (#1511)
Fixes #1512
2017-12-28 11:32:47 +03:00
Antoine Girard
f8fd45c086 Make the eventlet workers handle the usr1 signal by deferring to a new eventlet 2017-12-17 10:04:22 +01:00
Randall Leeds
953bb9e8d8
Merge pull request #1664 from hramezani/test_to_bytestring_util
Add some tests for `to_bytestring` util
2017-12-11 12:01:41 -08:00
Hasan Ramezani
70fd6193f6 Add some tests for to_bytestring util 2017-12-11 22:50:06 +03:30
Randall Leeds
cb2f471831 Remove superfluous BytesIO allocation 2017-12-10 11:57:32 -08:00
Nicolas Le Manchet
ad44552a03 Fix access logs not emitted when using logconfig_dict
Fixes #1652
2017-12-01 22:42:23 +03:00
Antoine Girard
b9e27b4c6a Make the gevent workers handle the usr1 signal by deferring to a new greenlet 2017-11-27 18:39:13 +01:00
Juan Julián Merelo Guervós
6ba2ebe545 Make "failed to find application" more informative (#1648)
Co-Authored-By: Luis Liñán Villafranca <luislivilla@gmail.com>

Fixes #1647
2017-11-24 10:42:03 +03:00
Benoit Chesneau
120f503f68 fix eventlet worker boot
new version of eventlet uses an external process to check a feature at
runtime (monotonic). ut since gunicorn already installed a signal handler,
eventlet never get the return and then was raising a runtime error making the worker crash.

This patch fix it by patching the worker after it has been initialized
and the signals resetted.

fix #1584
2017-11-12 11:19:30 +01:00
Benoit Chesneau
61431d47f3
Merge pull request #1616 from closeio/fix-non-blocking-connected-socket
Force gevent connected socket to blocking mode
2017-11-12 10:49:35 +01:00
Berker Peksag
2dd7321c90
Deprecate gaiohttp worker and document alternatives (#1569)
Fixes #1338
2017-10-31 07:30:41 +03:00
Randall Leeds
0e63307a65
Merge pull request #1602 from benoitc/feature/1087-dict-config
Support Dictionary Config setting.
2017-10-30 10:38:57 -07:00
Randall Leeds
783c9bee3e Warn on Python < 2.7 for dictConfig 2017-10-29 21:44:10 -07:00
Randall Leeds
a7d4491a71 Fix up documentation for dictConfig 2017-10-29 21:43:41 -07:00
Randall Leeds
c5ae962dfa Add CLI option for dictionary log config 2017-10-29 21:43:26 -07:00
Mat Moore
9d7c857521 The logconfig_dict setting is not available on 2.6 2017-10-29 21:28:53 -07:00
Mat Moore
e6de1a07b4 Issue 1087: support dictConfig logging configuration 2017-10-29 21:28:53 -07:00
Randall Leeds
ccad26dd91
Merge pull request #1481 from benoitc/fix/1349-config-module-path
Set CWD and Python path before and after config
2017-10-28 11:02:14 -07:00
Hasan Ramezani
90b7daebb6 Fix invalid auto_int value error when --umask=0 passed (#1632)
Fixes #1622
2017-10-28 10:48:23 +03:00
Randall Leeds
89e364977a Set CWD and Python path before and after config
The config may be specified as a Python module, in which case we want
to ensure that the Python path is fixed up properly before we try to
load it. That means we should follow symlinks and add the current working
directory before and after the configuration is loaded.

Fix #1349
2017-10-26 19:50:06 -07:00
Randall Leeds
a3e258f24a Merge pull request #1428 from bsergean/master
Update arbiter.py to not leave tmp files around (fix #1327)
2017-10-26 19:46:36 -07:00
Matt Billenstein
5d4f885103 [gevent worker] Fix broken header parsing in logging (#1607)
We have a http.client.HTTPMessage in Python 3
(mimetools.Message in Python 2), just take .items()
from that.
2017-10-23 18:12:23 +03:00
Hasan Ramezani
595ca263dd Add tests for util.{http_date,is_ipv6,warn} (#1630) 2017-10-22 21:20:19 +03:00
Hasan Ramezani
0ceb00e4ad Improve test coverage of util.parse_address() (#1629) 2017-10-22 19:55:44 +03:00
Hasan Ramezani
81efa40da7 Improve parsing of 'unix://' addresses in parse_address (#1623) 2017-10-16 09:44:00 +03:00
Joe Kemp
61da054e27 Force connected socket to blocking mode 2017-10-06 05:41:30 -04:00
Dariusz Suchojad
e868c52997 Point to GitHub for usage questions. (#1613)
Closes #1611
2017-10-05 18:57:59 +03:00
Carl Johan Gustavsson
d0d1a1ca99 docs: Fix typo in environment variable name 2017-10-01 14:37:48 +03:00
Berker Peksag
1edf8fcff5 Revert "Simplify hook handler config code"
This reverts commit cbbafdb9b1f8b0f04c7a0d174b5d56962e6bdbfe.
2017-09-19 02:28:00 +03:00
Takuya Noguchi
2bcec7fd0c Fix reST format in docs 2017-09-18 07:15:37 +03:00
Randall Leeds
4c3ee6f4ec Merge pull request #1589 from Code0x58/tweaks
Tweaks
2017-09-16 13:52:49 -07:00
Randall Leeds
fe9cdc3262 Merge pull request #1595 from Code0x58/sort-THANKS
Sort THANKS file in keeping with CONTRIBUTING.md
2017-09-16 13:42:22 -07:00
Oliver Bristow
f681a13664 Sort THANKS file in keeping with CONTRIBUTING.md 2017-09-16 21:31:55 +01:00
Randall Leeds
886b5e9731 Merge pull request #1581 from Code0x58/fix/1576-env-config-file
Fix #1576 - config file/module in GUNICORN_CMD_ARGS
2017-09-16 12:51:45 -07:00