2935 Commits

Author SHA1 Message Date
Benoit Chesneau
dbfb1deaba
Merge pull request #2901 from meibenny/update-irc-channel
Update irc channel docs
2022-12-21 10:52:58 +01:00
Benny Mei
61d643f988 add myself to THANKS file 2022-12-10 21:40:12 -05:00
Benny Mei
a41ee75c9e update irc channel docs 2022-12-10 21:34:56 -05:00
Benoit Chesneau
008d81d022
Update setup.py
ensure domain email reflects the correct domain
2022-12-03 08:18:12 +01:00
Benoit Chesneau
69c508ac6e
Merge pull request #2660 from tirkarthi/tirkarthi-patch-1
Fix psycogreen project link
2022-10-15 21:04:41 +02:00
Benoit Chesneau
54c8beb6ae
Merge pull request #2686 from jpmckinney/patch-1
docs: gthread is a sync worker
2022-10-15 21:03:59 +02:00
Benoit Chesneau
00de6d9d79
Merge pull request #2687 from vytas7/fix-sendfile-offset
Fix sendfile behaviour for open files with non-zero offset
2022-10-15 21:02:35 +02:00
Benoit Chesneau
d35ef47db8
Merge pull request #2827 from zffocussss/master
add attribute remote_addr to req object
2022-10-15 20:51:06 +02:00
Benoit Chesneau
5062a63b87
Merge pull request #2879 from Teko012/2878-add-http-431
Fix HTTP status code for Request Header Fields Too Large
2022-10-15 20:42:15 +02:00
Teko012
b42af98e0e
Add contributor 2022-10-15 14:28:21 +02:00
Teko012
6766c086d5
Fix HTTP status code for Request Header Fields Too Large 2022-10-15 14:21:56 +02:00
Benoit Chesneau
c9e754ef97
Merge pull request #2570 from tirkarthi/fix-threading
Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10
2022-10-14 11:38:30 +02:00
Benoit Chesneau
56c18bcff3
Merge pull request #2872 from jayaddison/cleanup/remove-travis-ci
Remove Travis CI configuration
2022-10-14 10:29:02 +02:00
James Addison
91fee38002 Remove Travis CI configuration 2022-09-29 20:57:39 +01:00
James McKinney
9f159f7cb6
docs: Add section for Gthread workers 2022-09-16 15:15:19 -04:00
Vytautas Liuolia
7209ea3ccb
Merge branch 'master' into fix-sendfile-offset 2022-08-29 18:58:38 +02:00
Benoit Chesneau
0b953b8037
Merge pull request #2773 from hazho/master
Solving issue #2692
2022-08-25 14:19:45 +02:00
Benoit Chesneau
053e15c05c
Merge pull request #2665 from jettero/patch-1
integral? that took me a while to figure out
2022-08-06 18:33:23 +02:00
Benoit Chesneau
4bb9090a2f
Merge pull request #2823 from Roffild/patch-1
fix LevelLog in Arbiter.run()
2022-08-06 18:32:38 +02:00
Benoit Chesneau
d7cfc372a5
Merge pull request #2785 from mvdbeek/make_loggers_function_atomic
Make loggers function atomic
2022-08-06 18:29:55 +02:00
focus zheng
c9d01c8019 get address from tuple 2022-07-14 10:19:18 +08:00
focus zheng
69bf1d0cf4 remove changes by isort and lint 2022-07-13 15:44:30 +08:00
Roffild
4dff334f18
fix LevelLog in Arbiter.run() 2022-07-05 14:43:43 +03:00
Benoit Chesneau
027f04b4b4
Merge pull request #2805 from pylipp/master
Add Python 3.10 classifier
2022-07-04 21:34:16 +02:00
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
pylipp
1754d33e4a Add Python 3.10 classifier
Upon pushing to PyPI, the badge on top of the readme should
automatically update
2022-05-24 15:39:46 +02:00
mvdbeek
f186fa3a27
Make loggers function atomic
Fixes https://github.com/benoitc/gunicorn/issues/2784:
```
Traceback (most recent call last):
  File "/home/runner/work/galaxy/galaxy/galaxy root/.venv/lib/python3.7/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
    worker.init_process()
  File "/home/runner/work/galaxy/galaxy/galaxy root/.venv/lib/python3.7/site-packages/uvicorn/workers.py", line 66, in init_process
    super(UvicornWorker, self).init_process()
  File "/home/runner/work/galaxy/galaxy/galaxy root/.venv/lib/python3.7/site-packages/gunicorn/workers/base.py", line 116, in init_process
    self.log.close_on_exec()
  File "/home/runner/work/galaxy/galaxy/galaxy root/.venv/lib/python3.7/site-packages/gunicorn/glogging.py", line 381, in close_on_exec
    for log in loggers():
  File "/home/runner/work/galaxy/galaxy/galaxy root/.venv/lib/python3.7/site-packages/gunicorn/glogging.py", line 94, in loggers
    return [logging.getLogger(name) for name in existing]
  File "/home/runner/work/galaxy/galaxy/galaxy root/.venv/lib/python3.7/site-packages/gunicorn/glogging.py", line 94, in <listcomp>
    return [logging.getLogger(name) for name in existing]
RuntimeError: dictionary changed size during iteration
```
2022-04-22 15:33:17 +02:00
Hazh. M. Adam
7d8f68c1a7
Solving issue #2692
ValueError: count must be a positive integer (got 0)
2022-04-04 12:27:55 +08: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