Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Session not closed in aiohttp.request after exception #3628
Long story short
ClientSession, created inside aiohttp.request, is closed after programm leaves
ClientSession is not closed.
Steps to reproduce
Why use aiohttp.request at all, opening new connection for every request is bad
I need to open new connection anyway:
Possibly related issues are #2920 (AIOHttp failing after some requests), #3523 (aiohttp not forwarding cookies with Session requests), #3031 (aiohttp request exceptions can't be caught sometimes when encountering bad http message), #3296 (aiohttp client session. it doesn't close a connection after keepalive_timeout), and #1403 ([QUESTION] aiohttp.ClientSession.request('GET') issue).