2465 Commits

Author SHA1 Message Date
Tuukka Mustonen
0e4e0779e6 doc: Notes about worker keepalive support 2017-08-09 18:05:08 +03:00
Randall Leeds
fc0d973416 Merge pull request #1547 from guj-zz/syslog_socktype
parse_syslog_addr sock_type default
2017-08-06 23:37:55 -07:00
tomjaguarpaw
fc1e7a8262 Remove redundant "is not None" in gunicorn/app/wsgiapp.py (#1558) 2017-08-01 13:56:49 +03:00
tomjaguarpaw
c77df25a84 Remove redundant "is not None" in gunicorn/app/base.py (#1557) 2017-08-01 13:54:35 +03:00
tomjaguarpaw
cf401982fd Remove redundant "is not None" in gunicorn/http/wsgi.py (#1556) 2017-08-01 13:51:19 +03:00
Randall Leeds
9507ae4a09 Merge pull request #1551 from tomjaguarpaw/patch-1
Remove redundant 'is not None'
2017-07-26 15:05:40 -07:00
tomjaguarpaw
4f11708542 Remove redundant 'is not None' 2017-07-22 20:05:55 +01:00
zz
5b0ae52c8a Merge remote-tracking branch 'origin/master' into syslog_socktype 2017-07-17 07:48:44 +02:00
Berker Peksag
56ef7710dd Fix a silly error introduced by 2407dd29a6b44e96150d48ac12d0d16be2506725 2017-07-14 02:42:28 +03:00
Berker Peksag
2407dd29a6 select.error is a subclass of OSError since Python 3.3 2017-07-12 18:07:16 +03:00
Berker Peksag
610596c9d9 Pass log.info() formatted values correctly
It should be

    log.info("%s", "spam")

not

    log.info("%s" % "spam")
2017-07-12 18:07:16 +03:00
Berker Peksag
2b7b63ae58 Test that os.kill() is called 2017-07-12 18:07:16 +03:00
Berker Peksag
b64c7fa305 Add # noqa to a false-positive for unused-import warning 2017-07-12 18:07:16 +03:00
Berker Peksag
f00fb441ca Remove unused variables 2017-07-12 18:07:16 +03:00
Berker Peksag
f859447a39 Update prospector configuration
* Disable pep8 and pyflakes
* Disable unnecessary options of pylint
2017-07-12 18:07:16 +03:00
Berker Peksag
dd7c8f330b list.pop() doesn't accept a second argument
This was introduced by 032271a030a6bbe39d22e9ebadf2a86ddf3b6705.
2017-07-12 17:48:23 +03:00
Benno Rice
f69c17f8e2 Unlock pylint as prospector now works with >=1.7. Use Python 3.6 for lint. 2017-07-12 16:36:50 +03:00
Benno Rice
0d11691718 Ensure that overriding methods match the signature they've overriden. 2017-07-12 16:34:28 +03:00
Benno Rice
20616d50fc Move a default class definition into an else block so we're not redefining. 2017-07-12 16:26:04 +03:00
Benno Rice
a4461ba158 RequestParser takes two parameters. 2017-07-12 16:17:50 +03:00
Benno Rice
e81c654c2d __str__ doesn't take any extra parameters. 2017-07-12 16:17:26 +03:00
Benno Rice
1f42421762 Fix a broken format string. 2017-07-12 16:16:40 +03:00
Benno Rice
e6edcb454a Remove some errant trailing commas. 2017-07-12 16:16:10 +03:00
Benno Rice
032271a030 Empty sequences are false, there's no need to check the len. 2017-07-12 16:15:42 +03:00
Benno Rice
5b89fe1beb Don't use a list comprehension as shorthand for a for loop. 2017-07-12 16:14:57 +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
Peter VandeHaar
fc7c15abbd Only use inotify on linux (#1541)
Fixes #1540
2017-07-12 12:55:48 +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
zz
af92742143 parse_syslog_address: unix domain socket type default None, since SOCK_STREAM may not be appropriate 2017-06-19 13:03:11 +02:00
Berker Peksag
9eea021ac8 Regenerate settings.rst to add --reload-engine 2017-06-16 14:04:34 +03:00
Berker Peksag
ca053a5fe1 Add versionadded directive to reload_extra_files 2017-06-16 14:02:55 +03:00
Randall Leeds
5426b04a7a Merge pull request #1527 from garbas/reload-extra-files
new --reload-extra-file option
2017-06-14 16:15:33 -07:00
Rok Garbas
f736909c5d
--reload-extra-file option 2017-06-15 00:46:47 +02:00
Berker Peksag
6b44263f77 Don't install pylint 1.7 due to a backwards imcompatible change 2017-04-15 00:55:13 +03:00
Berker Peksag
70947bb96a Skip test if WSGIServerHttpProtocol isn't available 2017-04-15 00:55:13 +03:00
JM Fernández
68260c6883 Fix "TypeError: 'OSError' object is not subscriptable" in py3 2017-04-14 04:15:38 +03:00
Randall Leeds
328e509260 Release version 19.7.1 2017-03-20 20:02:55 -07:00
Randall Leeds
b5fb32498d Update THANKS 2017-03-20 12:16:50 -07:00
Randall Leeds
c33367f8c7 update changelog for 19.7.1 2017-03-20 12:04:15 -07:00
Randall Leeds
ef53d02ad0 Merge pull request #1483 from benoitc/fix/1480-reuse-port-fail
Catch errors setting SO_REUSEPORT
2017-03-20 11:55:28 -07:00
Randall Leeds
15408a357f Catch errors setting SO_REUSEPORT
Fix #1480
2017-03-15 22:14:39 -07: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
Nik Nyby
3cca730144 fix typo in changelog 2017-03-11 01:51:29 +03:00
Benoit Chesneau
191c149ab1 we are in 2017 2017-03-04 10:31:44 +01:00
Benoit Chesneau
6ea963dae0 say hello to 19.7 2017-03-04 10:30:53 +01:00
Benoit Chesneau
dd4cf721d2 put the dot at the right place 2017-03-04 10:25:59 +01:00
Benoit Chesneau
d2e9d275f9 fix doc typo 2017-03-04 10:23:12 +01:00
Benoit Chesneau
b26125fb2c update the community doc.
fix #1474
2017-03-04 10:20:31 +01:00
benoît chesneau
111d0ba7da fix typo 2017-03-01 22:17:27 +01:00