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 Yaml use dict (#88977) 2023-03-01 12:29:57 -05:00
__init__.py
aiohttp.py Inverse json import logic (#88099) 2023-02-16 11:37:57 +01:00
async_.py Replace fire_coroutine_threadsafe with asyncio.run_coroutine_threadsafe (#88572) 2023-02-21 21:16:18 -05:00
color.py
decorator.py
distance.py
dt.py Update django github references to main instead of master branch. (#89951) 2023-03-20 10:27:55 +01:00
enum.py Cache try_parse_enum (#87911) 2023-02-12 03:57:36 -06:00
executor.py
file.py
json.py Add typed helpers and improve type hints in util/json (#88534) 2023-02-22 10:09:28 +01:00
location.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
logging.py Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
network.py
package.py Fix checking if a package is installed on py3.11 (#88768) 2023-02-25 22:47:18 -05:00
percentage.py Fix an extra quote typo in the percentage util (#87161) 2023-02-02 19:59:08 -06:00
pil.py
pressure.py
process.py
read_only_dict.py
speed.py
ssl.py Fix httpx client creating a new ssl context with each client (memory leak) (#90191) 2023-03-24 08:40:47 +01:00
temperature.py
thread.py
timeout.py Fix danglin task for util.timeout (#88366) 2023-02-18 00:11:35 -05:00
ulid.py Reduce overhead to store context ids in the database (#88942) 2023-03-08 14:51:45 -10:00
unit_conversion.py
unit_system.py Update unit system unit conversions (#87632) 2023-02-08 10:52:54 +01:00
uuid.py
variance.py
volume.py