Cursor timeout should not match connection timeout
Aberta
- Linguagem predominante
- Python
- Estrelas
- 1.4k
- Forks
- 170
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
It appears that the cursor timeout, when set to None, will always take the connection timeout as the maximum amount of time a query can run.
I believe this is a bug and should be changed.
https://github.com/aio-libs/aiopg/blob/master/aiopg/connection.py#L260
If this is not a bug and the intended behavior, it is very opinionated and should be documented.
A connection timeout is for establishing a connection to the database and it is very possible to have long running queries that exceed the connection timeout.
At the very least, I would like a way to disable the cursor timeout all together, but it appears that is not possible.
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.