SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
Bump httpx 0.21.2 from to 0.24.1
Alexandre Flamentb4e4cfc026fd
diff --git a/requirements.txt b/requirements.txtindex 3c91fa5c4..1b079d4ee 100644--- a/requirements.txt+++ b/requirements.txt@@ -7,10 +7,10 @@ lxml==4.9.3pygments==2.16.1python-dateutil==2.8.2pyyaml==6.0.1-httpx[http2]==0.21.2+httpx[http2]==0.24.1Brotli==1.0.9uvloop==0.17.0-httpx-socks[asyncio]==0.7.2+httpx-socks[asyncio]==0.7.7setproctitle==1.3.2redis==4.6.0markdown-it-py==3.0.0diff --git a/searx/network/client.py b/searx/network/client.pyindex ffee3f096..ed1796515 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)# loopdiff --git a/searx/network/network.py b/searx/network/network.pyindex 6e1825dd9..3ab0bff3a 100644--- a/searx/network/network.py+++ b/searx/network/network.py@@ -409,7 +409,7 @@ def done():"""Close all HTTP clientAvoid a warning at exit- see https://github.com/encode/httpx/blob/1a6e254f72d9fd5694a1c10a28927e193ab4f76b/httpx/_client.py#L1785+ See https://github.com/encode/httpx/pull/2026Note: 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