Takuya Noguchi
ed901637ff
Enable pycodestyle
2019-11-28 19:30:38 +09:00
Aaron Wilson
291483dd39
Add a __repr__ to config to include its value ( #2076 )
...
It's sometimes helpful to be able to trivially dump all the config values
for debugging purposes. This commit defines a repr for that.
2019-11-22 21:39:45 +01:00
benoitc
b01fe34e56
use hight protocol version of openssl by default
2019-11-22 15:34:07 +01:00
Emile Fugulin
b798412444
Remove default strip of header name
2019-11-18 19:44:01 -05:00
Sebastien Williams-Wynn
678b326dc0
Fix typo in --worker-class documentation ( #2030 )
2019-05-09 21:13:31 +03:00
Randall Leeds
a542a07773
Fix eventlet patching and bump required version
...
Fix eventlet patching by performing the patching before the
`init_process` method, which does not return, is called.
This fix depends on bumping the required version to 0.24.1, which
contains a fix for the monotonic clock. See the relevant commit:
eventlet/eventlet@82f1877
This commit reverts 120f503f68929ef98d721a406745a1dbbb9d83fe
Fix #1847
Fix #1884
2019-05-08 19:23:13 -07:00
dblack
96dde54af1
optional datadog tags for statsd metrics
2019-04-27 18:49:47 -07:00
Marat
a8963ef1a5
Remove redundant super() arguments
2019-03-16 15:00:07 -07:00
Randall Leeds
9f87c88819
Bump minimum Eventlet and Gevent versions ( #1962 )
...
Update the Eventlet and Gevent worker classes to check for versions of
Eventlet and Gevent that are stable under Python 3 and remove outdated
compatibility code.
2019-01-25 08:24:14 +01:00
Benoit Chesneau
97a45805f8
remove gaiohttp worker ( #1971 )
...
* remove gaiohttp worker
worker is deprecated and won't work on latest version.
2019-01-24 23:05:28 +01:00
Daniel Pope
2ea5fbdc86
Use Python's default SSL cipher list by default ( #1970 )
2019-01-24 22:41:04 +01:00
Brett Randall
c85bfba8b2
Fixed typo in ssl_version doc, TLSv2 -> TLSv1_2 (TLS 1.2). ( #1959 )
...
* Fixed typo in ssl_version doc, TLSv2 -> TLSv1_2 (TLS 1.2).
Signed-off-by: Brett Randall <javabrett@gmail.com>
* revert chdir change
2019-01-22 00:03:38 +01:00
Florian Apolloner
ee7af1247b
Added support to --bind to open file descriptors ( #1809 )
...
Fixes #1107
2018-11-16 20:21:13 +03:00
Berker Peksag
c66957bbe9
Add support for named constants in the --ssl-version flag
...
Fixes #1114
Co-Authored-By: Brett Randall <javabrett@gmail.com>
Signed-off-by: Brett Randall <javabrett@gmail.com>
2018-10-31 14:43:40 +03:00
Ron DuPlain
e5c11e8f8a
Clarify log format usage of header & environment ( #1907 )
2018-10-28 23:38:51 +03:00
Benoit Chesneau
91974f0f44
Merge branch 'pr-1724'
2018-09-04 12:19:30 +02:00
Michael Bishop
ec3c1dbd94
Fix typo in --max-requests documentation ( #1845 )
2018-08-01 21:47:57 +03:00
Hugo
e974f30517
Drop support for Python 2
...
Co-Authored-By: Dustin Ingram <di@users.noreply.github.com>
Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
2018-08-01 15:31:17 +03:00
Berker Peksag
473ac62a2b
Revert "Add test and update documentation"
...
This reverts commit eab1256052d7446359fb6f65279f9bebd18fafd4.
2018-05-06 18:10:53 +03:00
Berker Peksag
9320811f32
Fix markup in --log-syslog docs
2018-05-06 18:09:33 +03:00
Berker Peksag
eab1256052
Add test and update documentation
2018-05-06 18:05:54 +03:00
Hasan Ramezani
b4b9b18f1a
Improve capture_output setting documentation
2018-04-28 22:34:15 +04:30
Bruno Alla
d1f5268b15
Add extras_require for various worker types ( #1718 )
...
Fixes #1717
2018-03-08 17:19:44 +03: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
Berker Peksag
2dd7321c90
Deprecate gaiohttp worker and document alternatives ( #1569 )
...
Fixes #1338
2017-10-31 07:30:41 +03: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
Hasan Ramezani
90b7daebb6
Fix invalid auto_int value error when --umask=0 passed ( #1632 )
...
Fixes #1622
2017-10-28 10:48:23 +03:00
Berker Peksag
1edf8fcff5
Revert "Simplify hook handler config code"
...
This reverts commit cbbafdb9b1f8b0f04c7a0d174b5d56962e6bdbfe.
2017-09-19 02:28:00 +03:00
Oliver Bristow
cbbafdb9b1
Simplify hook handler config code
2017-09-15 17:56:54 +01:00
Oliver Bristow
f14d4428bd
Remove redundant properties
2017-09-14 22:12:06 +01:00
Oliver Bristow
bff593d9e4
replace shim wrap_method with staticmethod
2017-09-14 21:19:36 +01:00
Benoit Chesneau
60efb1041e
Merge pull request #1528 from hramezani/redirect_accesslog_issue_1403
...
Redirect accesslog issue 1403
2017-08-22 21:17:59 +02:00
Hasan Ramezani
7dc9003dff
Add disable-redirect-access-to-syslog config
2017-08-22 22:43:30 +04:30
Tuukka Mustonen
0e4e0779e6
doc: Notes about worker keepalive support
2017-08-09 18:05:08 +03:00
Benno Rice
72dd0199d7
Deal fully with deprecated functions.
...
If possible use a function based on inspect.signature to calculate the
arity. If inspect.signature is not available fall back to getargspec. The
version based on inspect.signature looks like more code but is actually a
subset of what inspect.getfullargspec does.
html.escape is preferred over cgi.escape primarily because it defaults quote
to True. For this reason pass quote=True to cgi.escape when used.
2017-07-12 16:14:09 +03:00
Nejc Saje
c58560b895
Document selection of 'gthread' worker if sync && threads > 1
...
The current documentation makes a reader believe that the setting is ignored if the worker type is not Gthread. That is not the case since if the worker is `sync`, a `threads` setting of > 1 sets the worker type to `gthread`.
I know this was probably done to support running gunicorn as `gunicorn --threads=4` and actually have threads even though the default worker is `sync`, but it can be confusing if running `gunicorn --worker-class sync --threads 4` and expecting the parameter will be ignored.
2017-07-07 16:01:16 +03:00
Berker Peksag
ca053a5fe1
Add versionadded directive to reload_extra_files
2017-06-16 14:02:55 +03:00
Rok Garbas
f736909c5d
--reload-extra-file option
2017-06-15 00:46:47 +02:00
Randall Leeds
2de1ea3561
Merge pull request #1465 from hramezani/issue_1325
...
fix non-decimal values problem in `umask` config.(issue 1325)
2017-03-13 23:44:15 -07:00
Ed Morley
fbd151e984
Remove dead code found using vulture ( #1469 )
...
https://pypi.python.org/pypi/vulture
In particular the removal of `get_maxfd()` means the `resource` module
is no longer required (which is not available on Windows) and so helps
with #524 .
2017-03-13 13:33:11 -07:00
Hasan Ramezni
ef79ee3983
fix non-decimal values problem in umask config.(issue 1325)
2017-02-19 13:33:42 +03:30
Mark Adams
bc20bea7d9
Add support for --reload-engine
...
Currently, gunicorn automatically uses the preferred reloader (inotify
if present with fallback to polling). However, it would be useful in
some scenarios if users could force polling.
The solution for this is to add a new configuration option called
'reload_engine' which takes one of three options: ['auto', 'poll',
'inotify'].
Fixes #1459
2017-02-14 19:49:37 +03:00
Berker Peksag
9c73259f71
Make ssl.PROTOCOL_SSLv23 default for --ssl-version
...
Fixes #1249
2017-02-06 09:10:35 +03:00
Berker Peksag
577c3eb030
Use the best available reloader when --reload is passed
...
Fixes #1422
2017-02-06 07:32:14 +03:00
Benoit Chesneau
91807e8b90
Merge pull request #1446 from RyPeck/1045/minor-tweaks-to-docs-for-threads-setting
...
Doc tweaks around threads setting
2017-02-06 04:48:49 +01:00
Berker Peksag
3da2f88dfe
Delete deprecated gunicorn_django command and --settings option
2017-02-05 05:57:41 +03:00
Berker Peksag
cb512715fe
Fix markup
2017-02-05 01:30:17 +03:00