Python aiohttp ResourceWarning socket
Python aiohttp is a go-to library for asynchronous networking operations using “asyncio”. One of the things we use aiohttp for is to replace synchronous “requests” with asynchronous aiohttp operations, to run many concurrent downloads or uploads for example.
Aiohttp 3.11 fixed a long-standing bug that caused spurious warnings on exiting the asyncio event loop (e.g. at the end of a script or function) like:
“aiohttp” ResourceWarning unclosed socket.socket