alex / alex/alchimia

add __del__ everywhere

Aberta
#42 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
102
Forks
20
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.