The Wayback Machine - https://web.archive.org/web/20210522163457/https://github.com/dotnet/aspnetcore/issues/32900
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

SignalR Client not recover the connection in Full Framework #32900

Open
LuisM000 opened this issue May 21, 2021 · 2 comments
Open

SignalR Client not recover the connection in Full Framework #32900

LuisM000 opened this issue May 21, 2021 · 2 comments

Comments

@LuisM000
Copy link

@LuisM000 LuisM000 commented May 21, 2021

Describe the bug

Microsoft.AspNetCore.SignalR.Client stops working after a few moments without connection in WPF Full Framework.

To Reproduce

We have a WPF Full Framework 4.7.2 application with Microsoft.AspNetCore.SignalR.Client package (5.0.6). When we disconnect the internet (for example, by deactivating the wifi of the pc), we wait a few moments and reconnect the internet, at no time SignalR tries to reconnect and, after recovering the internet, it stops working "forever", if for example at that moment we do a StopAsync, the call never ends.
On the other hand, if we do the same with WPF net core 3.1, this does not happen and everything works correctly (it reconnects).

Repro:
Video link: https://drive.google.com/file/d/1y3XGfThFMuz8n0EXApYBlLjtEGNb9b6f/view?usp=sharing
Example Full Framework: https://drive.google.com/file/d/1E6qx4tW0mw4jDO8M5H3xog71fJ_j98Oa/view?usp=sharing
Example net core: https://drive.google.com/file/d/1KWqa3xYY9oBZ8r3f1398g4y90WYs9cln/view?usp=sharing

Exceptions (if any)

In WPF Full Framework 4.7.2, after a few moments without an internet connection, a trace appears that may have some clue:
Exception thrown: 'System.Net.Http.HttpRequestException' in Microsoft.AspNetCore.Http.Connections.Client.dll

Further technical details

  • WPF Full Framework 4.7.2
  • Microsoft.AspNetCore.SignalR.Client 5.0.6
  • Microsoft Visual Studio Professional 2019 16.9.5
@BrennanConroy
Copy link
Contributor

@BrennanConroy BrennanConroy commented May 21, 2021

I assume the code is same between the two apps?

Can you share Trace logs from the failing app? https://docs.microsoft.com/aspnet/core/signalr/diagnostics?view=aspnetcore-5.0#net-client-logging

@LuisM000
Copy link
Author

@LuisM000 LuisM000 commented May 22, 2021

I assume the code is same between the two apps?

Yes, the same code.

Trace logs:
Trace.txt

The last error occurs when I have disabled the internet from the pc. After that if I make the call to connection.StopAsync() it doesn't leave any traces.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants