-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* connectors.py: edge-cases where Connection not put back into queue * pools.py: convert CyclicQueuePool release() to blocking/non-async It only does one call and that call is non-blocking * __init__.py: always set connection to response and remake __del__ create_task() has no guarantee of executing without being bound to a strong reference so task will be collected by the gc * connectors.py: close the connection upon TimeoutException We should ensure Connection is closed here before putting it back into queue. Failure to do so will raise RuntimeError: readuntil() called while another coroutine is waiting for data * __init.py__: fix small indentation mistake on HttpResponse __del__ * pools.py: missing await on pool get(). Change to get_nowait() It's missing the await keyword but if we actually await there and there's double cleanup, method will block forever. Change to get_nowait() so it properly raises QueueEmpty if double cleanup is attempted.
- Loading branch information
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters