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

Fix unpredictable connection issues #44

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Fix unpredictable connection issues #44

wants to merge 12 commits into from

Conversation

Hal-9k1
Copy link
Collaborator

@Hal-9k1 Hal-9k1 commented Feb 27, 2025

Reconnect to updated ip whenever the connection config is changed in ConnectionConfigModal.

Hal-9k1 and others added 12 commits February 22, 2025 15:30
Change the robot ip we connect to when it is edited in the modal even though I thought we added this
already.
Disconnect listeners on old sockets before destroying them, which prevents failed connection
attempts to old ips from being retried.
Add separate debounce for disconnect messages, hopefully showing more error info after disconnects.
Add friendly messages for ECONNABORTED, EHOSTUNREACH, ECONNABORTED, and ECONNRESET. This should
handle all the verbose messages commonly seen during testing.
Discover bug where Runtime sends offset packets leading to invalid packet type errors when the Dawn
machine switches networks (so we can't close the connection).
Fail to fix above bug by sending a RST packet and reconnecting after each connection error. This had
no effect.

Resolves #46.
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

Successfully merging this pull request may close these issues.

1 participant