zeroconf: make continuous browse spec-conformant for device - #1
Merged
Conversation
AhmadAbdullah668
approved these changes
Aug 24, 2026
Currently, client only captures first entry and swallows any further updates. This commit has modifications to handle IP-address change, departures, and stale entries as per RFC 6792. - Surface entry change: re-deliver an entry when its address/port/TXT differs from what was last sent. This handles an IP-address change (RFC 6762 §8.4 / §10.2). - Goodbye handling: on a TTL==0 record, deliver a removal to the subscriber rather than silently dropping it (RFC 6762 §10.1). - TTL-expiry sweep: track per-entry expiry and sweep on a ticker, so a device that leaves without a goodbye is eventually removed instead of lingering forever (RFC 6762 §10). - Continuous-query backoff: set Multiplier=2 and MaxInterval=30m (was the default 1.5 / 60s) so periodic re-query grows by at least a factor of two up to a <=60m cap (RFC 6762 §5.2).
kennethhung863
force-pushed
the
khung-spec-improvements
branch
from
August 25, 2026 21:40
cde1df4 to
6e95b13
Compare
kennethhung863
added a commit
that referenced
this pull request
Aug 25, 2026
zeroconf: make continuous browse spec-conformant for device
kennethhung863
added a commit
that referenced
this pull request
Aug 25, 2026
zeroconf: make continuous browse spec-conformant for device
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.
Currently, a zeroconf client only captures first entry and swallows any further updates. This prevents it from handling cases where its cache needs to be updated, making continuous browsing difficult. This PR has modifications to handle IP-address change, departures, and stale entries as per RFC 6792 to update the internal browse cache and track entries properly.