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 | MARS header errors when MakeReadAsyncBlocking = false #922

Merged
merged 3 commits into from
Feb 25, 2021

Conversation

David-Engel
Copy link
Contributor

@David-Engel David-Engel commented Feb 20, 2021

Fix for #85 when MakeReadAsyncBlocking = false.

What we found was that an async continuation task would sometimes run right after cancel. The State snapshot replay logic would change _hasOpenResult without incrementing/decrementing the counter so it would get out of sync and decrement the counter with no corresponding increment. This fixes it so that we can use MakeReadAsyncBlocking = false without MARS header errors.

@David-Engel David-Engel marked this pull request as ready for review February 23, 2021 17:28
@cheenamalhotra cheenamalhotra added this to the 3.0.0-preview1 milestone Feb 23, 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.

The MARS TDS header contained errors using ASP.NET Core and EF Core connecting to Azure SQL Server
3 participants