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

fix(pool): always test connection on release to see if it's still viable #1025

Merged
merged 1 commit into from
Feb 27, 2021

Conversation

abonander
Copy link
Collaborator

This should alleviate some issues WRT cancellation (cc #563) as connections in an inconsistent state should not be recycled by Pool.

SQLx-next (0.6) will address the cancellation issue by ensuring connections remember all relevant state in order to resume where they left off.

@abonander abonander requested a review from mehcode February 2, 2021 06:02
@abonander abonander force-pushed the ab/pool/bandaid branch 2 times, most recently from 58c2bcb to 541b26c Compare February 3, 2021 10:55
@dignifiedquire
Copy link
Contributor

I am afraid this breaks some code. Specifically the usage of a sqlite pool will result in PoolTimedOut errors all over the place.

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.

3 participants