add __del__ everywhere
- Lingua principale
- Python
- Stelle
- 102
- Fork
- 20
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Pretty much every object in `alchimia.engine` manages some state:
- TwistedEngine has a worker for connect & execute
- TwistedConnection has a worker where all its SQL is executed
- TwistedTransaction holds transaction state - this one we *might* not need to deal with since it's bound to the connection
- TwistedResultProxy holds a result proxy.
TwistedEngine and TwistedConnection are particularly problematic because the worker thread created behind the scenes is its own strong-reference root and will never be cleaned up during the lifetime of the process if these objects do not shut them down.
As seen in #30 , leaking these types of resources can give one the impression that the whole system is just freezing for no reason.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.