Michael
67c4de90f3
Add option to select list of accepted ssl ciphers in httpx client ( #91389 )
2023-04-15 09:32:30 -10:00
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
J. Nick Koston
87264d219a
Fix ssl context being recreated frequently in httpx ( #89932 )
...
* Fix ssl context being created every time in httpx
* its expensive, only do it once
2023-03-19 05:13:48 -04:00
Jan Bouwhuis
57738fbb8c
Replace deprecated SSLContext constant PROTOCOL_TLS in mqtt ( #88214 )
...
Replace deprecated SSLContext constants
2023-02-16 13:01:28 -05:00
Franck Nijhof
7adb8d5ddc
Code styling tweaks to core utils & YAML loader ( #85433 )
...
Code styling tweaks to core utils
2023-01-08 22:01:55 -08:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Bjørn Snoen
f207d46390
Allow using environment cacert file ( #38816 )
2020-09-04 13:54:20 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
6540d2e073
Switch to intermediate Mozilla cert profile ( #15957 )
...
* Allow choosing intermediate SSL profile
* Fix tests
2018-08-14 08:20:17 +02:00
Andrey
140a874917
Add typing to homeassistant/*.py and homeassistant/util/ ( #15569 )
...
* Add typing to homeassistant/*.py and homeassistant/util/
* Fix wrong merge
* Restore iterable in OrderedSet
* Fix tests
2018-07-23 10:24:39 +02:00
Paulus Schoutsen
4650366f07
Don't be so strict client-side ( #15546 )
2018-07-18 23:00:26 +02:00
Paulus Schoutsen
ad4cba70a0
Extract SSL context creation to helper ( #15483 )
...
* Extract SSL context creation to helper
* Lint
2018-07-16 10:32:07 +02:00