feat(mac): optimize connection reliability, auto-connect flow, and server thread-safety#238
Draft
Mudit200408 wants to merge 1 commit into
Draft
feat(mac): optimize connection reliability, auto-connect flow, and server thread-safety#238Mudit200408 wants to merge 1 commit into
Mudit200408 wants to merge 1 commit into
Conversation
…rver thread-safety - Improve auto-connect reliability and tracking via QuickConnectManager and UDPDiscoveryManager. - Optimize network change transition: immediately stop the server and reset the connection status to Disconnected, delaying only the server restart by 5 seconds to let interfaces stabilize. - Introduce a 6-second reconnect grace timer for temporary socket drops to coordinate with Android watchdog and prevent spurious UI disconnects. - Refactor server termination to safely capture active servers under lock before stopping them, preventing concurrent modification crashes. - Offload server stop/start cycles during restart to a background utility queue to keep the main thread responsive. - Fix UDP broadcast target address to 255.255.255.255 for reliable wakeup discovery. - Revert transient wake-up retry and filtering logic, reverting commit 1ce9ac6.
Owner
|
@Mudit200408 This PR may need more works as I have found a couple of major bugs one including not being able to disconnect at all. And also discovery service continuing while the connectionw as established and more. Please take a look and address them. :) sameerasw/airsync-android#110 as well |
Owner
Contributor
Author
Sure, Already fixed the 2 issues but i cannot get the BLE to connect, will fix that one soon |
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.

Needs Android side changes!!