Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor timeout should not match connection timeout #670

Open
gmr opened this issue Apr 6, 2020 · 0 comments
Open

Cursor timeout should not match connection timeout #670

gmr opened this issue Apr 6, 2020 · 0 comments

Comments

@gmr
Copy link

gmr commented Apr 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant