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 some threading issues when using a non-default sync context #3640

Conversation

mconnew
Copy link
Member

@mconnew mconnew commented May 15, 2019

We have a policy that if a non-default sync context is being used, to avoid potential deadlock (e.g. with a single threaded sync context such as used by winforms and WPF) or thread starvation problems, we forcefully asynchronously continue execution on the worker thread pool.
We had a few code paths where this didn't happen. This fixes those code paths.

@mconnew mconnew requested a review from StephenBonikowsky May 15, 2019 19:42
@StephenBonikowsky
Copy link
Member

The failing test cases are unrelated.

@StephenBonikowsky StephenBonikowsky merged commit 21175d6 into dotnet:master May 15, 2019
StephenBonikowsky added a commit to StephenBonikowsky/wcf that referenced this pull request May 15, 2019
* After resolving a separate issue fixed by dotnet#3640 these tests are now failing for an existing issue explained in dotnet#2870.
@mconnew mconnew deleted the FixWSTransportWithMessageCredentialThreadIssue branch September 27, 2019 17:52
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.

2 participants