Ben Kallus
2dbe49de99
RFC compliant header field+chunk validation
...
* update HEADER_RE and HEADER_VALUE_RE to match the RFCs
* update chunk length parsing to disallow 0x prefix and digit-separating underscores.
2023-12-15 13:33:31 +01:00
Paul J. Dorn
c3396b9786
github actions: cache and test run_module (-m)
2023-12-07 20:02:55 +01:00
benoitc
4023228493
let's exception not bubble
...
ensure we can catch correctly exceptions based on BaseException.
Note: patch was origninally proposed by the pr #2923 , but original
author closed it.
Fix #2923
2023-12-07 15:36:48 +01:00
Rami
0dd6b6350e
Use utime instead of fchmod in WorkerTmp.notify
2023-11-14 11:54:14 +02:00
Odysseas Fatouros
ca2ce2c76b
Fix for issue #3079 , worker_class parameter accepts a class
2023-10-13 16:15:40 +02:00
benoitc
ab9c8301cb
bump to 21.2.0
2023-07-19 13:31:10 +02:00
benoitc
bc905859a6
revert change considering connection as idle
2023-07-19 00:10:24 +02:00
benoitc
4e12ebe334
bump to 21.1.0
2023-07-18 14:41:05 +02:00
benoitc
86d85cb369
fix gthread worker
...
under Python 3.8 and sup exception is ValueError when fd has already
been cleared by the system.
fix #3029
2023-07-18 14:10:36 +02:00
benoitc
547f8561d9
bump 21.0.1: fix doc
2023-07-17 23:19:49 +02:00
benoitc
f628dd9730
fix import error
2023-07-17 22:40:52 +02:00
Benoit Chesneau
cc2e383578
Merge pull request #3003 from jasonamyers/2977-content-length
...
Updating Content-Length Handling
2023-07-11 00:14:23 +02:00
Benoit Chesneau
378f0d04ec
bump to 21.0.0
2023-07-10 22:09:23 +00:00
Jason Myers
fa94f70529
Updating Content-Length Handling
...
Signed-off-by: Jason Myers <jmyers@syntellis.com>
2023-05-30 20:42:13 -05:00
unknown
48d670f087
update pylint version, and fix linter issues
2023-05-17 18:45:59 +03:00
Benoit Chesneau
6998d1247c
Merge pull request #2993 from ikonst/fix-access-log
...
Log access even when connection is closed
2023-05-13 21:10:20 +02:00
Benoit Chesneau
59bbcdc2d5
Merge pull request #2963 from gotmax23/load_entry
...
replace pkg_resources.load_entry_point
2023-05-13 20:59:25 +02:00
Maxwell G
7f480daf07
replace pkg_resources.load_entry_point
...
pkg_resources is deprecated. Use the corresponding importlib.metadata
interface instead. Use the stdlib version on python >= 3.8 and use the
importlib_metadata backport on older versions.
2023-05-12 21:29:54 +00:00
Ilya Priven
858b743d07
remove double finally
2023-05-11 15:04:45 -04:00
Ilya Konstantinov
6d4faab6d6
Log access even when connection is closed
2023-05-11 14:53:32 -04:00
Benoit Chesneau
b7242beacd
Merge pull request #2992 from Nordix/deprecate-ssl-version
...
Deprecate ssl_version option
2023-05-11 18:40:54 +02:00
Tero Saarni
d8c3b1490e
Deprecate ssl_version option
...
This change defaults SSLContext to Python's ssl.create_default_context() and
marks ssl_version option as deprecated. The option value will be ignored and
warnign will be printed in stderr.
The ssl_version option was depending on old method of setting TLS min/max
version, which has not worked well anymore with modern Python versions.
2023-05-11 17:45:57 +03:00
Tero Saarni
2b98f5e7b7
Fix username parsing for basic auth
2023-05-11 16:32:14 +03:00
Benoit Chesneau
f859de498a
Merge pull request #2634 from YingjieQiao/docs/cert_reqs
...
docs: add examples for cert-reqs
2023-05-11 10:09:44 +02:00
Benoit Chesneau
f955a0c18c
Merge pull request #2649 from Nordix/sslcontext
...
Update SSLContext handling
2023-05-11 09:51:37 +02:00
Chandan CH
ed9729a826
add missing double quote
...
Opening double quote was missed during the recent hence, showing the below error:
auth.split(b":", 1)[0].decode(UTF-8", "replace")
SyntaxError: unterminated string literal (detected at line 472)
2023-05-08 11:28:30 +05:30
Benoit Chesneau
506d014dd4
Merge pull request #2802 from fdemmer/2801-fix-logrecords
...
Fix LogRecord pre-formatting, closes #2801
2023-05-08 00:24:18 +02:00
Benoit Chesneau
bc39261621
Merge pull request #2446 from jkugler/fix_signature_on_inotify_fail
2023-05-07 23:08:42 +02:00
Florian Demmer
0b5c4aea99
Fix LogRecord pre-formatting, closes #2801
2023-05-07 22:46:10 +02:00
Benoit Chesneau
a7ead9831e
fix basic auth logging
...
decoding of basic auth header. fix #2625
2023-05-07 21:05:41 +02:00
Benoit Chesneau
4a1c402e2c
Merge pull request #2384 from larribas/2066-statsd-socket
...
Allow reporting StatsD metrics over UDS sockets
2023-05-07 20:39:11 +02:00
Benoit Chesneau
8c1747b224
Merge pull request #2633 from duanhongyi/patch-1
...
fix: gunicorn run tornado app failed
2023-05-07 19:47:32 +02:00
Benoit Chesneau
f19e31fec5
utils.py: fix code reference
...
fix #2632
2023-05-07 19:46:02 +02:00
Benoit Chesneau
e7781d2c2c
gthread: consider intial connectino as idle
...
this change consider the connection is iddle when started and remove it from the eventloop if no change appears in the interval.
This prevents the connection queued for too much time.
2023-05-07 18:02:49 +02:00
Benoit Chesneau
a423fca8e5
Merge pull request #2918 from JorisOnGithub/bugfix/fix-gthread-deadlock
...
gthread: only read sockets when they are readable (#2917 )
2023-05-07 17:57:09 +02:00
Benoit Chesneau
1fd1c82195
Merge pull request #2419 from mildebrandt/feature/1663
...
Add additional logs when worker exits abnormally
2023-05-07 16:30:05 +02:00
Benoit Chesneau
5de82ce781
Merge pull request #2315 from benoitc/more-verbose-exit-logging
...
More verbose exit logging
2023-05-07 16:28:49 +02:00
Benoit Chesneau
db9de0175d
Merge branch 'master' into 1775-support-log-config-json
2023-05-07 16:16:56 +02:00
Benoit Chesneau
96ab8ba05a
Merge pull request #2405 from kenoss/feature/warn-if-sdnotify-and-daemon
...
Warn in the case of bad systemd configuration
2023-05-07 16:14:34 +02:00
Benoit Chesneau
b1d6418ebe
Merge pull request #2497 from sergeypeloton/patch-1
...
Use warning level for 'Bad request' logs
2023-05-07 16:06:47 +02:00
Tal Einat
72faa11e27
Replace pkg_resources.parse_version with packaging.version.parse
...
This is a step towards removing the dependency on pkg_resources, which is part
of setuptools, and thus makes setuptools a runtime dependency.
2023-03-22 21:53:05 +02:00
Klaas van Schelven
d04ddfd117
Docs: add link to configuration file
...
See #2136 (not a full solution, but at least one more path
to understanding added)
2023-02-08 12:04:53 +01:00
Ankit Patel
b0115b9c27
detach socket in child process
2023-02-01 16:14:33 -05:00
Ankit Patel
0a0ef9d140
only create sockets in forked processes not in master
2023-02-01 16:13:12 -05:00
Benoit Chesneau
8fa57d0884
Merge pull request #2928 from samypr100/pycodestyle-fixup
...
Fixing errors reported by pycodestyle
2023-01-26 22:34:51 +01:00
samypr100
2ea4699fe7
Fixing errors reported by pycodestyle
2023-01-22 21:20:11 -05:00
benoitc
30baeebf33
Revert "get address from tuple"
...
This reverts commit c9d01c801967596f66636cfc0c47660339d32631.
2023-01-22 12:47:07 -05:00
JorisOnGithub
0ebb73aa24
gthread: only read sockets when they are readable
2023-01-16 22:46:58 +01: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