2903 Commits

Author SHA1 Message Date
Benoit Chesneau
786e2875c2
Merge pull request #2809 from dmsimard/update-readme
readme: IRC channel has moved to libera.chat
2022-07-04 21:33:54 +02:00
David Moreau Simard
7ef281fa03
readme: IRC channel has moved to libera.chat
There was a bit of drama with the freenode network and most channels
have since migrated to libera.chat which is somewhat a spiritual
successor.
2022-05-29 19:15:40 -04:00
Benoit Chesneau
933b210f2e
Merge pull request #2758 from dwarfmaster/master
Prevent unnecessary setuid call
2022-03-14 18:58:23 +01:00
Benoit Chesneau
32b5daffe4
Merge pull request #2757 from usr3/patch-1
Fix typo in deploy.rst
2022-03-14 18:57:23 +01:00
DwarfMaster
cc3238c6ff Prevent unnecessary setuid call 2022-03-13 17:16:32 +01:00
usr3
99447b0827
Fix typo in deploy.rst 2022-03-13 14:41:33 +05:30
Brett Randall
1aae54a8e1
Merge pull request #2740 from benoitc/gh-actions
Split gh-actions into main/test + lint workflows, replace Travis badges
2022-02-21 10:13:33 +11:00
Brett Randall
71d6388f01
Replaced Travis CI badge with 2x gh actions badges for test and lint 2022-02-07 13:40:12 +11:00
Brett Randall
19fb762bd5
Split main tox test build and linters into two workflows. 2022-02-07 13:24:50 +11:00
Brett Randall
80a62afc1e
Updated THANKS. 2022-02-07 08:43:10 +11:00
Christian Clauss
eaebf6d72b Revert the xfail for Python 3.10 2022-02-07 08:23:03 +11:00
Christian Clauss
1feb7c59a2 Revert the xfail for Python 3.10 2022-02-07 08:23:03 +11:00
Christian Clauss
f587bfaf0f GitHub Action to run tox 2022-02-07 08:23:03 +11:00
Christian Clauss
a16b8975a9 GitHub Action to run tox
Because Travis CI seems to be on vacation... https://travis-ci.org/github/benoitc/gunicorn
2022-02-07 08:23:03 +11:00
Brett Randall
238de4e3cf
Merge pull request #2731 from benoitc/daemonize-dev-null-stdin-inheritable
Ensure fd 0 stdin </dev/null is always inheritable

Fixed #2727 .
2022-02-07 07:42:48 +11:00
Brett Randall
230cd03403
Updated THANKS. 2022-02-07 07:39:46 +11:00
Brett Randall
0b6939de86
Undo changes that make -R branch logic behave the same as non -R branch,
that is, to close(0) and open /dev/null as fd=0 instead of fd=3.

(Partially) Revert "Ensure fd 0 stdin </dev/null is always inheritable."

This partially reverts commit 7946678f271e25473618929d6f2725c8c375563e.
2022-02-07 07:39:46 +11:00
Brett Randall
e9c4f7443e
Revert "Refactoring: common stdin </dev/null."
This reverts commit a4f286769858ecfef14080f815adce26c260b2a9.
2022-02-07 07:39:46 +11:00
Brett Randall
eedc3a38b6
Refactoring: common stdin </dev/null. 2022-02-07 07:39:46 +11:00
Brett Randall
835a4fc420
Ensure fd 0 stdin </dev/null is always inheritable.
When gunicorn --daemon daemonizes the process, prior to this change it was
noted that in the general case (without -R / --enable-stdio-inheritance), when fd 0
was replaced with /dev/null, the dup2 copy is skipped, and per PEP 446
"Make newly created file descriptors non-inheritable", the result was a stdio
fd </dev/null which was non-inheritable.  As a result, any launched subprocess
did not have an open 0/stdin fd, which can cause problems in some applications.

This change retains the behaviour of opening /dev/null with fd 0, but adds a call
to os.set_inheritable(..) to ensure the fd is inheritable.

The -R branch had different logic but has now been standardised with the general
case.  It was previously opening /dev/null as fd 3 and the dup2() copy made it
inheritable as fd 0.  This branch now applies the same logic: open as fd 0
(i.e. after close(0)), then set_inheritable.  As a result, an extra fd 3 </dev/null
previously left open is no longer left open.

Signed-off-by: Brett Randall <javabrett@gmail.com>
2022-02-07 07:39:46 +11:00
Krystian
e5a97150c9
fix chdir documentation typo (#2656) 2022-02-04 08:11:51 +11:00
Brett Randall
60d0474a6f
Merge pull request #2720 from kianmeng/fix-typos
Fix typos
2022-01-18 08:44:23 +11:00
Kian-Meng Ang
cf3619f831 Fix typos 2022-01-14 23:34:02 +08:00
benoitc
76f8da24cb Revert "Log a warning when a worker was terminated due to a signal"
This reverts commit b695b497b9b8e7351808848ab9e342219601742a.
2021-12-17 15:16:34 +01:00
Benoit Chesneau
ff58e0c6da
Merge pull request #2631 from hugovk/update-deprecated-unittest-aliases
Replace deprecated unittest alias
2021-09-06 21:28:27 +02:00
Hugo van Kemenade
45687c358c Replace deprecated unittest alias 2021-08-18 13:09:03 +03:00
Benoit Chesneau
1299ea9e96
Merge pull request #2581 from temoto/patch-1
eventlet worker: ALREADY_HANDLED -> WSGI_LOCAL
2021-07-02 21:50:26 +02:00
Sergey Shepelev
6a8ebb4844 eventlet worker: ALREADY_HANDLED -> WSGI_LOCAL
Eventlet v0.30.3+ removed wsgi.ALREADY_HANDLED in favor of
`wsgi.WSGI_LOCAL.already_handled: bool`

Sorry, this breaking change happened during only patch
version increase 0.30.2 -> 0.30.3

https://github.com/eventlet/eventlet/issues/543
https://github.com/eventlet/eventlet/pull/544
2021-06-09 21:49:48 +03:00
Benoit Chesneau
cf55d2cec2 bump version 2021-03-27 03:07:48 +01:00
Michael Milton
b83448bfb4
Clarify the secure scheme behaviour, with examples (#2492) 2021-03-08 10:58:22 -08:00
Benoit Chesneau
2ffc1b7512
Merge pull request #2526 from smilerlee/master
Fix a naming error for gthread worker
2021-02-24 11:57:57 +01:00
Smiler Lee
fb05e33377 Fix a naming error for gthread worker 2021-02-24 17:43:17 +08:00
Daan Luttik
3b8ce3df1f
Added a line to the documentation to further explain the use of logconfig_dict
Added a line to make the question "how to use `logconfig_dict`" way easier to answer.
2021-02-16 15:54:49 -08:00
Randall Leeds
01f5d4dd0c Remove 2020 unreleased changelog 2021-02-15 20:00:25 -08:00
Randall Leeds
1cfb59caaa Fix changelog lint 2021-02-15 20:00:13 -08:00
Randall Leeds
6fbe6a115b Clarify grammar in FAQ about worker restarts
Noticed by @guettli on GitHub, this sentence was likely supposed to say
that workers may "be killed" and "start up", where "to start up" is a
verb phrase while "startup" is a single word noun. Clarify by changing
this to read "to stop and start".
2021-02-15 18:23:59 -08:00
Benoit Chesneau
426fe70a54
link to 2021 2021-02-12 22:57:48 +01:00
Benoit Chesneau
61ccfd6c38 bump to 20.1.0 2021-02-12 22:43:44 +01:00
Benoit Chesneau
d1f0f11b7b fix inline code syntax in news 2021-01-08 13:55:28 +01:00
Benoit Chesneau
f87882e4ab add an empty line in news.rst 2021-01-08 12:30:31 +01:00
Benoit Chesneau
7a79808d96 update changeslog 2021-01-08 12:21:46 +01:00
Adam Johnson
6fd97b9559 Document that WEB_CONCURRENCY is set by, at least, Heroku 2021-01-06 03:14:31 +02:00
Adam Johnson
dad99a1bd4 Update gunicorn_ext.py 2021-01-06 03:14:31 +02:00
Adam Johnson
3273492811 Improve settings documentation
I was reading the documentation to configure another application successfully deployed with Gunicorn, and thought the documentation here could be improved a bit for clarity.

* Use code highlighting for the names, to indicate they are the names to use in the Python configuration file.
* Spell out the CLI flags and defaults with "Command line" and "Default" prefixes so it's clear what these are
* Consistently use Python syntax for the defaults, so the types may be more easily understood.
* Split multiple CLI flags with "or" rather than a comma, for clarity and easier copy-paste.
* Improve some descriptions, such as for ``raw_env`` and a header for "Server Hooks".
2021-01-06 03:14:31 +02:00
Randall Leeds
86eac4ce94
Merge pull request #2479 from benoitc/capture-peer-name
Capture peer name from accept
2020-12-31 11:24:11 -05:00
Randall Leeds
03c642e709
Merge pull request #2480 from kofrezo/update_docs_install
Update Debian and Ubuntu distribution information
2020-12-21 11:55:04 -05:00
Daniel Kröger
a4407abfa5 Default to Python 3 version of gunicorn in Stretch 2020-12-21 15:59:11 +01:00
Daniel Kröger
00e73b7e94 Update Debian and Ubuntu distribution information
- Recommend latest (supported) Debian and Ubuntu versions
- Update provided versions of gunicorn in Debian and Ubuntu
2020-12-21 15:59:02 +01:00
Nikita Sobolev
28a4c1b25e Typo fixed in the AsyncIO docs 2020-12-20 05:45:46 +02:00
Randall Leeds
d7ff60536d Add Python 3.9 to PyPI classifiers 2020-12-19 00:46:48 -05:00