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

Issue in ConnectAsync().Result #19

Open
balavigs opened this issue Dec 11, 2017 · 1 comment
Open

Issue in ConnectAsync().Result #19

balavigs opened this issue Dec 11, 2017 · 1 comment

Comments

@balavigs
Copy link

balavigs commented Dec 11, 2017

Whenever there is a heavy load in the app, where we have a lot of call to Redis, the application in which we use "RedisBoost.ConnectAsync().Result" works quite well for some time. After that, the thread that makes a call to "RedisBoost.ConnectAsync().Result" is blocked by this line of code and it is never released. Over a period of time, all calls to this line of code is blocked and the application gets hanged. Can anyone, please let me know what might be causing this or if anything need to be fixed.

@philipszalla
Copy link

Maybe you should not use .Result on a Task.
I think this will cause your deadlocks.

Take a look here:
https://blogs.msdn.microsoft.com/jpsanders/2017/08/28/asp-net-do-not-use-task-result-in-main-context/

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

No branches or pull requests

2 participants