core/homeassistant/util
J. Nick Koston 1f2268a878
Fix httpx client creating a new ssl context with each client (memory leak) (#90191)
* Fix httpx client creating a new ssl context with each client

While working on https://github.com/home-assistant/core/issues/83524
it was discovered that each new httpx client creates a new ssl context

f1157dbc41/httpx/_transports/default.py (L261)

If an ssl context is passed in creating a new one is avoided here

f1157dbc41/httpx/_config.py (L110)

This change makes httpx ssl no-verify behavior match aiohttp ssl no-verify
behavior

6da04694fd/aiohttp/connector.py (L892)

aiohttp solved this by wrapping the code that generates the ssl context
in an lru_cache

* compact
2023-03-24 08:40:47 +01:00
..
yaml
__init__.py
aiohttp.py
async_.py
color.py
decorator.py
distance.py
dt.py
enum.py
executor.py
file.py
json.py
location.py
logging.py
network.py
package.py
percentage.py
pil.py
pressure.py
process.py
read_only_dict.py
speed.py
ssl.py
temperature.py
thread.py
timeout.py
ulid.py
unit_conversion.py
unit_system.py
uuid.py
variance.py
volume.py