You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After fixing #1981 there is now new bug, causing Unclosed client session warnings when repeating requests.
Expected behaviour
No warnings.
Actual behaviour
Warnings.
Steps to reproduce
importaiohttpimportasyncioasyncdefInit():
forNinrange( 5 ): # Key difference from #1981 test, warnings only happen when repeating the requestResponse=awaitaiohttp.request( "GET", "http://www.google.com/" )
asyncforLineinResponse.content:
print( "Received {} bytes".format( len( Line ) ) )
if__name__=="__main__":
Loop=asyncio.get_event_loop()
Loop.run_until_complete( Init() )
Your environment
Tested on Windows 10 build 15063, Debian 8
Python 3.6, aiohttp==2.2.0
Traceback ( aiohttp 2.2.0 )
PS C:\Users\root\Desktop> pip install aiohttp==2.2.0 -q
PS C:\Users\root\Desktop> .\test.py
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x040C79D0>
Received 3362 bytes
Received 1580 bytes
Received 85 bytes
Received 2 bytes
Received 6281 bytes
Received 29 bytes
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0376CD90>
Received 3273 bytes
Received 1580 bytes
Received 85 bytes
Received 2 bytes
Received 6281 bytes
Received 29 bytes
Received 3363 bytes
Received 1580 bytes
Received 85 bytes
Received 2 bytes
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0376CCB0>
Received 6279 bytes
Received 29 bytes
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x040D7E30>
The text was updated successfully, but these errors were encountered:
Long story short
After fixing #1981 there is now new bug, causing
Unclosed client session
warnings when repeating requests.Expected behaviour
No warnings.
Actual behaviour
Warnings.
Steps to reproduce
Your environment
Tested on Windows 10 build 15063, Debian 8
Python 3.6, aiohttp==2.2.0
Traceback ( aiohttp 2.2.0 )
The text was updated successfully, but these errors were encountered: