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

Requests which raise a PoolTimeout need to be removed from the pool queue. #502

Merged
merged 3 commits into from
Feb 4, 2022

Conversation

tomchristie
Copy link
Member

Since #491 we've started raising a RuntimeError if the connection pool is closed while still handling some requests.

This caused an error in the httpx test suite, where a pool timeout was being raised causing the client to close. In this case we hadn't removed the request from the connection pool.

This pull request resolves that, as well as resolving the case of task-cancellation-of-a-queued-waiting-request.

Copy link
Member

@aminalaee aminalaee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@aminalaee aminalaee mentioned this pull request Feb 4, 2022
@tomchristie tomchristie merged commit 54567ac into master Feb 4, 2022
@tomchristie tomchristie deleted the cleanup-state-on-pool-timeouts branch February 4, 2022 12:08
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

Successfully merging this pull request may close these issues.

2 participants