Skip to content

Conversation

@pirovorster
Copy link
Contributor

@pirovorster pirovorster commented Feb 1, 2021

Currently
sbClient.ReceiveAsync(timeout).Result;
causes a deadlock (not always, but sometimes).

bClient.ReceiveAsync(timeout).GetAwaiter().GetResult()
also deadlocks

The change forces the execution onto another thread and avoids the deadlock completely.

@mythz
Copy link
Member

mythz commented Feb 1, 2021

Thanks for the PR! Can you approve our Contributor License Agreement so we can merge this, thx.

@pirovorster
Copy link
Contributor Author

@mythz Done. Thanx.

@mythz mythz merged commit 4ca0a84 into ServiceStack:master Feb 1, 2021
@mythz
Copy link
Member

mythz commented Feb 1, 2021

Cheers 👍

This change is now available from the latest v5.10.5 that's now available on MyGet.

@pirovorster
Copy link
Contributor Author

Thank you.

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