mirror of
https://github.com/searxng/searxng.git
synced 2024-11-23 04:27:46 +01:00
Merge pull request #2644 from dalf/update_httpx
Bump httpx 0.21.2 from to 0.24.1
This commit is contained in:
commit
9069da051a
@ -7,10 +7,10 @@ lxml==4.9.3
|
|||||||
pygments==2.16.1
|
pygments==2.16.1
|
||||||
python-dateutil==2.8.2
|
python-dateutil==2.8.2
|
||||||
pyyaml==6.0.1
|
pyyaml==6.0.1
|
||||||
httpx[http2]==0.21.2
|
httpx[http2]==0.24.1
|
||||||
Brotli==1.0.9
|
Brotli==1.0.9
|
||||||
uvloop==0.17.0
|
uvloop==0.17.0
|
||||||
httpx-socks[asyncio]==0.7.2
|
httpx-socks[asyncio]==0.7.7
|
||||||
setproctitle==1.3.2
|
setproctitle==1.3.2
|
||||||
redis==4.6.0
|
redis==4.6.0
|
||||||
markdown-it-py==3.0.0
|
markdown-it-py==3.0.0
|
||||||
|
@ -180,7 +180,15 @@ def get_loop():
|
|||||||
|
|
||||||
def init():
|
def init():
|
||||||
# log
|
# log
|
||||||
for logger_name in ('hpack.hpack', 'hpack.table', 'httpx._client'):
|
for logger_name in (
|
||||||
|
'httpx',
|
||||||
|
'httpcore.proxy',
|
||||||
|
'httpcore.connection',
|
||||||
|
'httpcore.http11',
|
||||||
|
'httpcore.http2',
|
||||||
|
'hpack.hpack',
|
||||||
|
'hpack.table',
|
||||||
|
):
|
||||||
logging.getLogger(logger_name).setLevel(logging.WARNING)
|
logging.getLogger(logger_name).setLevel(logging.WARNING)
|
||||||
|
|
||||||
# loop
|
# loop
|
||||||
|
@ -409,7 +409,7 @@ def done():
|
|||||||
"""Close all HTTP client
|
"""Close all HTTP client
|
||||||
|
|
||||||
Avoid a warning at exit
|
Avoid a warning at exit
|
||||||
see https://github.com/encode/httpx/blob/1a6e254f72d9fd5694a1c10a28927e193ab4f76b/httpx/_client.py#L1785
|
See https://github.com/encode/httpx/pull/2026
|
||||||
|
|
||||||
Note: since Network.aclose has to be async, it is not possible to call this method on Network.__del__
|
Note: since Network.aclose has to be async, it is not possible to call this method on Network.__del__
|
||||||
So Network.aclose is called here using atexit.register
|
So Network.aclose is called here using atexit.register
|
||||||
|
Loading…
Reference in New Issue
Block a user