2787 Commits

Author SHA1 Message Date
Benoit Chesneau
e4e20f273e
Merge pull request #2233 from benoitc/remove-version-in-server-header
remove version from the Server header
2020-01-11 19:17:51 +01:00
Benoit Chesneau
f74f926f36 remove trailing new line 2020-01-10 13:58:29 +01:00
Benoit Chesneau
dcfd0f04e8 fix SERVER_SOFTWARE property
WSGI spec requires the SERVER_SOFTWARE property containing the name and version. This change fix it and separate the version header from SERVER_SOFTWARE property. We expose the SERVER variable so custom installations can change it in one place without looking much when needed.
2020-01-10 13:50:53 +01:00
Benoit Chesneau
2f944c9bea remove version from the Server header
while we still want to know which server is running to ease operation, the version was giving too much information on the installation, so let's remove it.
2020-01-10 11:00:00 +01:00
Jason Madden
abc621beea
Merge pull request #2230 from benoitc/issue2223
Use socket.sendfile() instead of os.sendfile().
2020-01-06 04:54:26 -06:00
Jason Madden
2d40e6dace
Use socket.sendfile() instead of os.sendfile().
Fixes #2223.

Unfortunately, eventlet doesn't implement GreenSocket.sendfile, so we have to do it for it.

Add gevent and eventlet to tox.ini and add tests to make sure we can at least import the workers. Some tests that this actually functions would be nice...

Update the gevent and eventlet setup extras to require the versions that are enforced in their worker modules.
2020-01-04 06:31:25 -06:00
Brett Randall
9c1438f013
Merge pull request #2229 from benoitc/docs-3-5-min
Updated requires Python to >= 3.5
2020-01-02 06:56:13 +11:00
Brett Randall
1e0ab52405
Merge pull request #2228 from benoitc/no-universal-wheel
Don't build universal wheel, as Python 2 support has been removed
2020-01-02 06:55:49 +11:00
Brett Randall
2ec7493bcb
Updated requires Python to >= 3.5. 2020-01-01 12:58:43 +11:00
Brett Randall
7cce20e937
Don't build universal wheel, since Python 2 support has been removed.
This reverts commit 765b8ab48b6fb991eeb9bcf4f60c0cba6f48359f .
2020-01-01 11:35:53 +11:00
Randall Leeds
57fbbce554
Merge pull request #2227 from mikaeldusenne/hotfix/empty-dirname-inotify
add os.path.abspath() in dirname generation of the reloader
2019-12-30 12:59:54 -08:00
Randall Leeds
e636bf8198
Merge pull request #1784 from tnir/1599-pycodestyle-ci
Enable pycodestyle
2019-12-30 12:58:17 -08:00
Mikaël Dusenne
e5310d15e9 add os.path.abspath() in dirname generation of the reloader
Otherwise adding a watcher for a file located in the working directory generates an empty dirname, resulting in the following error:
inotify.calls.InotifyError: Call failed (should not be -1): (-1) ERRNO=(0)

Caused by the fact that we call inotify with an empty path
2019-12-30 08:39:03 -05:00
monobaila
cfc93ad701 Update FAQ - Workers Silently Killed. 2019-12-15 09:31:16 +01:00
Wesley Ellis
5a57d595c5 Fix sample command syntax highlighting in run.rst
Extra `:` was causing the syntax highlighting to mess up, resulting in the docs containing the `..code-block:: text` markup
2019-12-14 07:01:56 +03:00
Brett Randall
4ef01b1c10 Bumped py3 min version in setup.py to 3.5 (was 3.4).
Signed-off-by: Brett Randall <javabrett@gmail.com>
2019-12-04 00:41:10 +01:00
Randall Leeds
91e9dcba96
Merge pull request #2210 from benoitc/update-maintainers
Add Brett Randall to MAINTAINERS
2019-12-02 20:46:47 -08:00
Brett Randall
9c147f6649
Added Brett Randall to MAINTAINERS. 2019-12-03 11:35:39 +11:00
Takuya Noguchi
ed901637ff Enable pycodestyle 2019-11-28 19:30:38 +09:00
benoitc
ff1dbfec06 update site with the new version 2019-11-27 00:02:48 +01:00
benoitc
5d0c778300 bump to 20.0.4 2019-11-26 20:38:04 +01:00
benoitc
67cb62099c remove socketfromfd module
socket.fromfd using socket.AF_UNIX as type should be enough to be
cross-platform since the address is larger than for others family.
This should allow the code to work cross-platform.
2019-11-26 20:27:21 +01:00
Benoit Chesneau
c58337731a Revert "socketfromfd: remove python 2 compatibility"
This reverts commit 404a7120234e2b1119f4e8a3662c542e4d8700c8.
2019-11-26 20:27:21 +01:00
Benoit Chesneau
ab25bae7eb Revert "socketfromfd: fix cross platform usage"
This reverts commit e69e8020539989d1b5d4846f5329843c6150767d.
2019-11-26 20:27:21 +01:00
Benoit Chesneau
8c759dd2e3 Revert "fix linting on python 3.8"
This reverts commit d38f6e47ea03a4c0121036a4300fe2d0155e85c6.
2019-11-26 20:27:21 +01:00
Benoit Chesneau
d530e673c3 Revert "refactor module"
This reverts commit 9419d660960869438c1a19838e09b63e6dbfbac6.
2019-11-26 20:27:21 +01:00
benoitc
5bae77c56c Merge branch '20.x' 2019-11-25 23:31:30 +01:00
benoitc
d95ed4489e point website to last version 2019-11-25 23:30:42 +01:00
benoitc
0c3af6e364 Merge branch 'master' into 20.x 2019-11-25 23:16:58 +01:00
benoitc
f646bdee39 fix bad cherry-picking 2019-11-25 23:15:22 +01:00
benoitc
2dae3ea165 bump to 20.0.3 2019-11-25 23:06:01 +01:00
benoitc
8b64aaedd5 changelog for the 20.0.3 2019-11-25 23:05:10 +01:00
benoitc
50a2cb6b16 bump to 20.0.3 2019-11-25 22:59:12 +01:00
benoitc
5257d924b6 changelog for the 20.0.3 2019-11-25 22:57:00 +01:00
benoitc
388fe40797 make config doc more explicit
explicit what we mean by "not need to be importable".
2019-11-25 22:51:46 +01:00
benoitc
05515873ea put back configuration file without py extension and deprecate it
this change put back (and fix it) support of configuration files without
ython extension and warn about its usage.
2019-11-25 22:51:46 +01:00
benoitc
d31ac1df83 config file extension should be a python extension
This change make it clear what is configuration file for Gunicorn.
Using a filename with an extension different than a python extension
was never supported. Also it gives us some room for a proper config file.
2019-11-25 22:51:46 +01:00
benoitc
444b2d8213 refactor module
use appropriate naming for function, make _getsockname more generic and
doc more useful
2019-11-25 22:51:46 +01:00
benoitc
3ae3d1cfcc fix linting on python 3.8 2019-11-25 22:51:46 +01:00
benoitc
883e62da46 socketfromfd: fix cross platform usage
on osx and maybe some other systems, SO_PROTOCOL is not set, also
the socket family is not detected correctly.

This patch remove default values in socketfromfd and do the following:
* detect proper family using getsockname instead of getsocktopt
* if no type is given, default to SOCK_STREAM (we don't have any other type)
* if no protocol is given, default to 0 and let the system take care of it.
2019-11-25 22:51:46 +01:00
benoitc
fa32aa7757 socketfromfd: remove python 2 compatibility 2019-11-25 22:51:46 +01:00
benoitc
b4e52c181a make config doc more explicit
explicit what we mean by "not need to be importable".
2019-11-25 22:44:25 +01:00
benoitc
9a3e008eca put back configuration file without py extension and deprecate it
this change put back (and fix it) support of configuration files without
ython extension and warn about its usage.
2019-11-25 22:44:25 +01:00
benoitc
9538358511 config file extension should be a python extension
This change make it clear what is configuration file for Gunicorn.
Using a filename with an extension different than a python extension
was never supported. Also it gives us some room for a proper config file.
2019-11-25 22:44:25 +01:00
benoitc
9419d66096 refactor module
use appropriate naming for function, make _getsockname more generic and
doc more useful
2019-11-25 17:45:35 +01:00
benoitc
d38f6e47ea fix linting on python 3.8 2019-11-25 17:45:35 +01:00
benoitc
e69e802053 socketfromfd: fix cross platform usage
on osx and maybe some other systems, SO_PROTOCOL is not set, also
the socket family is not detected correctly.

This patch remove default values in socketfromfd and do the following:
* detect proper family using getsockname instead of getsocktopt
* if no type is given, default to SOCK_STREAM (we don't have any other type)
* if no protocol is given, default to 0 and let the system take care of it.
2019-11-25 17:45:35 +01:00
benoitc
404a712023 socketfromfd: remove python 2 compatibility 2019-11-25 17:45:35 +01:00
Randall Leeds
20774b8331 Remove support for bdist_rpm 2019-11-24 17:44:47 +01:00
benoitc
ceca7c849c bump website version 2019-11-23 11:42:32 +01:00