Skip to content

Conversation

@Vovetta
Copy link

@Vovetta Vovetta commented Jul 25, 2023

Should fix #955

On many concurrent requests sometimes TimeoutError raises, but acquire future is done
That leads to connection leak, cause connection not returns to pool

elprans added a commit that referenced this pull request Oct 9, 2023
`wait_for` has been a mess with respect to cancellations consistently in `asyncio`. Hopefully the approach taken in Python 3.12 solves the issues, so adopt that instead of trying to "fix" `wait_for` with wrappers on older Pythons. Use `async_timeout` as a polyfill on pre-3.11 Python. Closes: #1056 Closes: #1052 Fixes: #955
elprans added a commit that referenced this pull request Oct 9, 2023
`wait_for` has been a mess with respect to cancellations consistently in `asyncio`. Hopefully the approach taken in Python 3.12 solves the issues, so adopt that instead of trying to "fix" `wait_for` with wrappers on older Pythons. Use `async_timeout` as a polyfill on pre-3.11 Python. Closes: #1056 Closes: #1052 Fixes: #955
@elprans elprans closed this in #1086 Oct 9, 2023
elprans added a commit that referenced this pull request Oct 9, 2023
`wait_for` has been a mess with respect to cancellations consistently in `asyncio`. Hopefully the approach taken in Python 3.12 solves the issues, so adopt that instead of trying to "fix" `wait_for` with wrappers on older Pythons. Use `async_timeout` as a polyfill on pre-3.11 Python. Closes: #1056 Closes: #1052 Fixes: #955
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant