-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[TS] HubConnection stuck in Disconnecting state #30839
Comments
Can you share the debug logs from the client? |
ExplanationI opened 3 identical browser tabs and put the PC to sleep overnight. Today I woke it up and the connection was successfully restored in all tabs. Then I put the PC to sleep again, after waking up the issue reproduced in all 3 tabs. 1st sleep: reconnected normally2nd sleep: stuck in "Disconnecting"
|
Awesome, thanks for the logs! Sort of figured out what is wrong in the library. We don't properly handle closing the connection if I was able to write a test to reproduce the issue, so now we can look into fixing it and have a nice regression test 😃 |
Describe the bug
After I wake up my PC from sleep, the WebSocket connection gets terminated (which is OK). Sometimes it cannot be restarted and then
HubConnection.state
becomesDisconnecting
forever:.start()
always throws Cannot start a HubConnection that is not in the 'Disconnected' state..stop()
returns a promise which doesn't resolve ever.Logs after waking up the PC from sleep:
Internals of the corrupted
HubConnection
:Exceptions (if any)
Further technical details
The text was updated successfully, but these errors were encountered: