summaryrefslogtreecommitdiff
path: root/searx/network
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2023-08-12 14:57:00 +0000
committermrpaulblack <paul@paulgo.io>2023-08-21 22:05:12 +0200
commitb4e4cfc026fdc287622e0aa5f08db5d1e30ef869 (patch)
tree4f78ea4b0aff5df7e76d429dc790f349443fbaa8 /searx/network
parentd52919cc3e90b588e252e41e73f06aea49097db2 (diff)
Bump httpx 0.21.2 from to 0.24.1
Diffstat (limited to 'searx/network')
-rw-r--r--searx/network/client.py10
-rw-r--r--searx/network/network.py2
2 files changed, 10 insertions, 2 deletions
diff --git a/searx/network/client.py b/searx/network/client.py
index ffee3f09..ed179651 100644
--- a/searx/network/client.py
+++ b/searx/network/client.py
@@ -180,7 +180,15 @@ def get_loop():
def init():
# 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)
# loop
diff --git a/searx/network/network.py b/searx/network/network.py
index 6e1825dd..3ab0bff3 100644
--- a/searx/network/network.py
+++ b/searx/network/network.py
@@ -409,7 +409,7 @@ def done():
"""Close all HTTP client
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__
So Network.aclose is called here using atexit.register