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

Rare race condition with keepalive after upgrading to Npgsql 8.0.3 #216

Closed
madelson opened this issue Jun 30, 2024 · 0 comments
Closed

Rare race condition with keepalive after upgrading to Npgsql 8.0.3 #216

madelson opened this issue Jun 30, 2024 · 0 comments
Assignees
Milestone

Comments

@madelson
Copy link
Owner

madelson commented Jun 30, 2024

See #209 (comment)

The root cause is Npgsql's command re-use, which means that NpgsqlConnection.CreateCommand() is not thread-safe.

@madelson madelson self-assigned this Jun 30, 2024
madelson added a commit to davidngjy/DistributedLock that referenced this issue Jun 30, 2024
@madelson madelson added this to the 2.5 milestone Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant