Skip to content

Conversation

@lovelydinosaur
Copy link
Contributor

When there's more than one request made (or queued) on a connection, and the connection is closed, we should guard against trying to pop it from the pool twice. There's no good reason to assume that of the multiple calls to response_closed() that only the final call will happen to satisfy connection.is_closed().

@lovelydinosaur lovelydinosaur merged commit 0e8bc1f into master Nov 17, 2021
@lovelydinosaur lovelydinosaur deleted the fix-close-connection-race-condition branch November 17, 2021 14:12
@lovelydinosaur lovelydinosaur mentioned this pull request Nov 17, 2021
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