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
DeviceClient/ModuleClient .OpenAsync Timeouts/Delays with .NET Core 2.1 #521
Comments
@jason-e-gross , we are aware of the issue. |
/cc @varunpuranik |
@CIPop -- I've been able to reduce it down to:
If I switch to AMQP transport settings, there's zero delay in .OpenAsync (2.0 and 2.1), works as expected. |
Thanks @jason-e-gross for the new info! I've moved all our testing to |
We believe this issue has been fixed in DotNetty here: Azure/DotNetty#413 We need to cut a new release of DotNetty and update the SDK with this new version. |
Version 1.18.0 of the C# SDK has been released to nuget.org. Please give it a try. |
Any update on when new version of DotNetty will be available? |
@isimanovich - the new version 1.18.0 of the C# SDK has already been released. Can you check if if you still run into this issue? |
@varunpuranik I was referring to DotNetty package that @myagley mentioned on Aug10 ^^^. However, I get following error message after exactly 1 hr and 5 minutes of DeviceClient being used to send messages to IoTHub:
|
@isimanovich - Dotnetty version 0.5.0 which includes the fix has also been released. As for the exception, is it a timeout (you included the callstack but not the exception)? |
i think, i found root-cause of my issue |
@isimanovich - Could you update us with your findings ? Are you unblocked? |
We are very interested in your findings - they may help other users of the SDK as well so if you have some time, please add them to this thread. Closing for now. @isimanovich please follow https://github.com/Azure/azure-iot-sdk-csharp/tree/master/tools/CaptureLogs to collect logs when you're getting this exception with the latest release. |
@jason-e-gross, @myagley, @isimanovich, @prmathur-microsoft, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey |
Description of the issue:
When updating the IOT Edge project to use .NET Core 2.1, it introduces delays and timeouts in devices or modules at .OpenAsyc. About 30% timeouts to crashing (which edgeAgent restarts the module) to 70% delays of over 20-30 seconds or more.
Code sample exhibiting the issue:
It shows in either:
or
If we downgrade back to .NET Core App 2.0, the timeout/delay goes away, and .OpenAsync is as quick as you would expect it to be. It exhibits itself in three modules we tried updating - which range from nothing more special than the FilterModule example to one that uses Kestrel/SignalR (port 8012).
Updating to the 1.17.0-preview-007 has made it less likely to timeout and crash the module, but it still takes over 20 seconds. An example of a timeout is below (4 mins passed before it crashed). Includes a .ContinueWith to capture the stack trace.
Startup.cs
relevant Program.cs
The text was updated successfully, but these errors were encountered: