Repository navigation
Dashboard: show a lost connection at once, and reconnect when the server is back - #306
Merged
Merged
Conversation
…ver is back The connection store registered its handlers for the connection's own events (reconnecting, reconnected, closed) only in a start-up path that nothing calls. A dropped connection therefore showed only at the next health check, up to 30 seconds later, and the header kept "Online", read once when the page loaded. - The handlers are registered on the live connection, once per connection object. - A close the page did not cause starts a reconnection: a connection whose own automatic reconnect gave up closes without an error, so the error alone did not start one. - The scheduler status is read again when the connection is lost or comes back, so the header shows "Offline" while the server is gone.
startConnectionAsync returned at once while the connection was still Connecting, so a caller took a start that later failed for a success and the reconnection loop could stop. A second caller now waits for the start in flight and gets its result. The header status read skips while the layout has not loaded its services yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The connection store registered its handlers for the connection's own events (reconnecting, reconnected, closed) only in a start-up path that nothing calls. When the server went away, the socket closed within a second, but the header showed "WebSocket Disconnected" only at the next health check (22 s in a test) and kept "Online", which is read once when the page loads.
Change
What does not change
Testing
vue-tsc --buildclean, no new lint messages. This PR changes no .NET file; every .NET test project passed on the same develop base.