sethmlarson / truststore

Verify certificates using OS trust stores
https://truststore.readthedocs.io
MIT License
151 stars 18 forks source link

Fix the `aiohttp` examples to clean up resources #139

Closed webknjaz closed 3 months ago

webknjaz commented 3 months ago

The previously present snippets presented a misuse of aiohttp's APIs. While technically they work, they don't release the allocated resources like async CMs would. And so we recommend using the latter.

Ref https://github.com/aio-libs/aiohttp/issues/8430#issuecomment-2139581921.