aio-libs / aio-libs/aiopg

Cursor timeout should not match connection timeout

Đang mở
#670 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
1.4k
Fork
170
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.