Skip to content

Added connection retry when the network is unreachable#112

Closed
albaintor wants to merge 2 commits into
unfoldedcircle:mainfrom
albaintor:wakeup
Closed

Added connection retry when the network is unreachable#112
albaintor wants to merge 2 commits into
unfoldedcircle:mainfrom
albaintor:wakeup

Conversation

@albaintor
Copy link
Copy Markdown
Contributor

Same PR as for AppleTV : retry connection within 500ms when OSError occurs to handle remote wakup delay

@zehnm
Copy link
Copy Markdown
Contributor

zehnm commented Dec 4, 2025

Let's wait for the next UI release dealing with retries after wakeup and see if that works better for those who have the reconnection issues.

@zehnm
Copy link
Copy Markdown
Contributor

zehnm commented Dec 19, 2025

Closing: UI has enhanced reconnect logic.

If the reconnect logic needs to be adapted in an integration driver, then it should be approached with a different backoff algorithm. (The added ERROR_OS_WAIT delay has the same initial MIN_RECONNECT_DELAY value).

Ultimately the "network not available" issue should not occur and not require special handling in device connection after wakeup. I'll recheck and fix if required the logic after sending the connect command after wakeup. The core already waits for the "network is routeable" event from the network stack. Either there's still an issue, or it's not telling the truth...

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.

2 participants