aio-libs / aio-libs/aiopg

Cursor timeout should not match connection timeout

Aberta
#670 0 comentários 2 reações 0 responsáveis Ver no GitHub
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

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.