This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
Calling Connection.close from __del__ method could result in RuntimeWarning #1211
Closed
1 task done
Labels
Describe the bug
Discovered this bug in testing. After establishing connection to redis if reference was garbage collected not awaited task could stay in even loop.
To Reproduce
Expected behavior
No runtime warnings, managing lifecycle of object should be explicit as it's not possible to reason if or when
__del__
going to be called.Logs/tracebacks
aioredis Version
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: