Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use a per Connection query lock #129

Merged
merged 1 commit into from
May 24, 2020
Merged

Conversation

hayd
Copy link
Member

@hayd hayd commented May 22, 2020

This ensures a Client can not do concurrent queries over the same connection

Fixes #123

Note: This may also need to be done on connect/_startup, as if you call that twice/concurrently there could be an issue 🤷 , I haven't tested that.

@dynajoe
Copy link
Contributor

dynajoe commented May 22, 2020

This seems a bit simpler than my approach, for sure. I will play with it.

@hayd
Copy link
Member Author

hayd commented May 22, 2020

FYI it seems github actions is stuck due to a github incident.
Hopefully it'll go green once it's back to normal...

@dynajoe
Copy link
Contributor

dynajoe commented May 22, 2020

I like the simplicity of your solution! Kudos!

This ensures a Client can not do concurrent queries over the same connection
@hayd hayd force-pushed the alternative-123 branch from 0b6ebe0 to ad76bce Compare May 23, 2020 06:37
@hayd hayd merged commit efdf58b into denodrivers:master May 24, 2020
@hayd hayd deleted the alternative-123 branch May 24, 2020 18:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants