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

Add workaround for poisoned connection pool #11

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

syeopite
Copy link
Owner

@syeopite syeopite commented Jan 4, 2024

#4 appears to be caused by faulty connections that aren't properly released which will result in a PoolTimeout exception when attempting to fetch one.

When enough of a pool gets poisoned, all requests will fail due to the PoolTimeout exceptions.

This commit implements a workaround by detecting and then reinitializing poisoned connection pools which would clear all of the faulty connections.

Closes #4

@syeopite syeopite marked this pull request as ready for review January 4, 2024 20:47
#4 appears to be caused by
faulty connections that aren't properly released which will result in
a PoolTimeout exception when attempting to fetch one.

When enough of a pool gets poisoned, all requests will fail due to the
PoolTimeout exceptions.

This commit implements a workaround by detecting and then reinitializing
poisoned connection pools which would clear all of the faulty connections.
@syeopite
Copy link
Owner Author

syeopite commented Jan 4, 2024

@extremelyonline I've noticed that your instance is pretty heavily affected by #4. Could you try and see if this patch fixes it?

@syeopite syeopite merged commit 7686932 into master Jan 13, 2024
@syeopite syeopite deleted the frozen-requests-workaround branch January 13, 2024 23:07
syeopite added a commit that referenced this pull request Feb 2, 2024
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.

PoolTimeout exceptions on requests to Tumblr
1 participant