fix: legacy unicast mDNS responder for Android .local - #5
Merged
Conversation
mdns-sd 0.20.3 unicasts legacy replies but hardcodes ID=0, so Android getaddrinfo rejects them. Add a SO_REUSEPORT legacy unicast responder (RFC 6762 §6.7) and move crate tests under tests/. Co-authored-by: Cursor <cursoragent@cursor.com>
Align transaction-ID echoing and tests with one-shot .local lookups from Android clients. Co-authored-by: Cursor <cursoragent@cursor.com>
- refresh_memberships only recomputes when AnswerSet changes (was calling getifaddrs every loop iteration, ~5x/s) - simplify run_loop idle-sleep condition (drop dead branch) - integration test: retry whole bind-spawn-query cycle on different ephemeral ports to eliminate the drop-and-race window Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
getaddrinfo/ browser.localresolution).src/#[cfg(test)]modules totests/(microinit-style).Test plan
Made with Cursor