2688 Commits

Author SHA1 Message Date
Benoit Chesneau
fa23cab8a2
Merge pull request #2142 from hramezani/issue_2123
Add some lint errors to .pylintrc disable list (#2123)
2019-10-27 18:17:31 +01:00
Hasan Ramezani
e7890d8d1b
Fix lint errors (#2123) 2019-10-27 11:57:16 +01:00
Hasan Ramezani
5d1d3af7f5
Add import-outside-toplevel to pylintrc disable list. 2019-10-25 11:09:20 +02:00
Randall Leeds
235f06c3af
Merge pull request #2128 from csgactuarial/Fix-Headers-Regex
Ensure header value is string before conducting regex search.
2019-10-19 16:44:00 -07:00
Jeff Brooks
ad6ed3f4c8 Implement check and exception for str type on value in Response process_headers method. 2019-10-15 09:03:44 -05:00
Jeff Brooks
54c820feb3 Ensure header value is string before conducting regex search on it. 2019-10-10 10:41:22 -05:00
Benoit Chesneau
e147feaf8b fix echo example on python 3.7 2019-09-27 23:15:59 +02:00
Benoit Chesneau
bc6b2fd320
Merge pull request #2121 from TylerLubeck/patch-1
Terminology changes
2019-09-27 20:18:53 +02:00
Tyler Lubeck
c6bb90ca82
Update CONTRIBUTING.md 2019-09-27 11:09:45 -07:00
Benoit Chesneau
e6a88dbfcd bump to 20.0.0 2019-09-27 01:47:03 +02:00
Benoit Chesneau
ce03c192f4 fix formatting 2019-09-27 01:45:03 +02:00
Tyler Lubeck
49341f1fb3
Terminology changes 2019-09-26 14:54:54 -07:00
johnthagen
f35ae584b4 Add pypy3 to list of tested environments (#2105) 2019-09-08 04:55:26 +03:00
Leonardo Furtado
799df751c7 Add link to CONTRIBUTING.md from README.rst (#2069) 2019-08-20 03:46:22 +03:00
장준영
d765f0d123 Group exceptions with same body together in Arbiter.run() (#2081) 2019-08-20 03:34:18 +03:00
John Whitlock
40d22ae38d Add setproctitle to extras_require (#2094)
This allows you to specify that you want setproctitle installed so that
gunicorn can set meaningful process names at install time or in a
requirements file.
2019-08-20 03:27:59 +03:00
Randall Leeds
40802904eb Avoid unnecessary chown of temporary files
When Gunicorn is configured to change the effective user or group of the
worker processes, it changes the owner and group fo the the temporary
files used for interprocess communication.

With this change, Gunicorn does not change the owner or group of the
files if the worker processes will run as the current effective user and
gorup. This change avoids calling chown when it is not necessary, which
may allow Gunicorn to be used in environments that restrict use of the
chown syscall.

Relates to #2059.
2019-08-19 11:22:58 -07:00
Martin Bašti
f38f717539 Fix pytest 5.0.0 compatibility
pytest.raises() returns exception info not the exception itself. They
changed implementation of exception info, so now .value property must be
used to get the exception instance and have proper output from str()
method.

https://github.com/pytest-dev/pytest/issues/5412

Signed-off-by: Martin Bašti <mbasti@redhat.com>
2019-07-17 18:56:18 +03:00
Martin Bašti
7e640f804c Logging: Handle auth type case insensitively
According RFC-7617 (inherited from RFC-2978) schema and parameter names are handled
case insensitively:
```
Note that both scheme and parameter names are matched case-
insensitively.
```

Signed-off-by: Martin Bašti <mbasti@redhat.com>
2019-07-17 18:56:18 +03:00
Marwan Rabbâa
dc7b5d5c48 Fix compatility with tornado 6 (#2001) 2019-06-04 14:17:01 -07:00
Masashi SHIBATA
b15712924f Import unittest.mock unconditionally (#2050) 2019-05-28 16:09:44 +03:00
c-bata
6df58a99b5 Remove util.import_module 2019-05-28 16:07:31 +03:00
Philippe Ombredanne
679c3727df Fix typo in license text
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
2019-05-28 16:06:31 +03:00
Masashi SHIBATA
c435341e66 Remove fallback for types.SimpleNamespace (#2049) 2019-05-28 16:05:51 +03:00
Masashi SHIBATA
a13a2096ed Use SourceFileLoader instead instead of execfile_ (#2046) 2019-05-26 22:09:52 +03:00
Masashi SHIBATA
3701ad9f26 Use importlib instead of __import__ and eval (#2043) 2019-05-22 22:07:02 +03:00
Randall Leeds
b12d364095
Merge pull request #2042 from c-bata/fix-typo4
Fix typo: connnection to connection
2019-05-22 12:08:35 -04:00
c-bata
85ec74fc10 Fix typo: connnection to connection 2019-05-20 22:24:45 +09:00
c-bata
aa8b258f93 Fix typo: treatement to treatment 2019-05-20 12:56:44 +03:00
c-bata
d4ff4b419c Fix typo: peform to perform 2019-05-20 12:56:18 +03:00
c-bata
dc639e0d0e Fix typo: hanle 2019-05-20 12:54:59 +03:00
Randall Leeds
13c833216e
Merge pull request #2036 from DeltaF1/patch-1
Update install.rst
2019-05-16 14:13:52 -07:00
DeltaF1
89c13491af
Update install.rst
Minor grammar/punctuation fixes
2019-05-16 14:05:50 -04: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
Randall Leeds
ad941bdff4
Merge pull request #2024 from m2p-consulting/async-worker-clarifications
Emphasize that full greenlet support might need additional work
2019-05-08 18:12:35 -07:00
Jason Madden
78737074cf
Add Jason Madden to MAINTAINERS. 2019-05-06 14:40:38 -05:00
Armin Berres
c2e39fd1a7 Emphasize that full greenlet support might need additional work 2019-05-03 16:02:10 +02:00
Benoit Chesneau
cf8ac37ce4
Merge pull request #1969 from benoitc/wsgi_input_terminated
handle `wsgi.input_terminated` extension
2019-04-29 13:58:05 +02:00
Randall Leeds
0ecbb18287
Merge pull request #1504 from dblackdblack/add-datadog-tags
optionally send datadog tags with statsd
2019-04-27 19:12:07 -07:00
dblack
96dde54af1 optional datadog tags for statsd metrics 2019-04-27 18:49:47 -07:00
Brett Randall
879651bb6f Header values are encoded using latin-1, not ascii.
This commit reverts one aspect changed by 5f4ebd2eb2b08783a5fbefe79d09fcb3fc1fbc73 (#1151);
header-values are again encoded as latin-1 and not ascii. Test is restored but uses
a latin-1-mappable test-character, not a general utf8 character.

Fixed #1778.

Signed-off-by: Brett Randall <javabrett@gmail.com>
2019-04-18 04:23:19 +03:00
Randall Leeds
cc8e67ea83 Fix new pylint errors 2019-03-16 16:11:23 -07:00
Hasan Ramezani
2b07f2be28 Rewrite parse_address util and add one test 2019-03-16 15:07:53 -07:00
Marat
a8963ef1a5 Remove redundant super() arguments 2019-03-16 15:00:07 -07:00
Andrew Widdersheim
a2a8bc1ae6 Move ThreadPoolExecutor() creation into own method
Move ThreadPoolExecutor() creation into it's own method so it is easier
to override when subclassing.
2019-02-21 09:28:47 -08:00
Andrew Widdersheim
5680320e5c Simplify futures import
Commits e974f305 and 78208c8c removed support for Python 2 and Python
<3.4 respectively so the conditional logic for importing
`concurrent.futures` is no longer necessary as it has been part of the
standard library since Python 3.2.
2019-02-20 05:57:49 +03:00
Benoit Chesneau
a4e249d9b0
Merge pull request #1985 from jat001/patch-1
worker_connections also affects the Gthread worker type
2019-02-13 19:18:32 +01:00
Jat
a1ffebcdb2
worker_connections also affects the Gthread worker type 2019-02-13 22:43:21 +08:00
Benoit Chesneau
770ec16c53
Merge pull request #1983 from benoitc/gh1978
corretly set max_requests
2019-02-08 13:40:03 +01:00