Skip to content

Fix | Fix blocked Cancel() method when executing Async APIs #973

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

Closed
wants to merge 2 commits into from

Conversation

cheenamalhotra
Copy link
Member

Locks should not be needed in SqlCommand Async APIs - as they simply block Cancel method from execution.
More details in issue #44 discussions.

The test "SqlCommandCancelTest.AsyncCancelDoesNotWait" did not reproduce this error as it used WAITFOR DELAY. Modifying query to a continuous while loop reproduces error.

WIP - Validate fix.

# 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.

1 participant