| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Add Zeroconf.reconfirm_record / async_reconfirm_record and the AsyncZeroconf wrapper so callers can hint that a cached record may be stale when an application-level connect fails. Re-queries the record at t=0/1s/3s (RFC 6762 §5.2 doubling intervals) and flushes from the cache at t=10s when no fresh response lands.
Codecov Report❌ Patch coverage is 85.71429% with 11 lines in your changes missing coverage. Please review.
@@ Coverage Diff @@
## master #1772 +/- ##
==========================================
- Coverage 99.77% 99.47% -0.31%
==========================================
Files 33 33
Lines 3536 3608 +72
Branches 498 511 +13
==========================================
+ Hits 3528 3589 +61
- Misses 5 10 +5
- Partials 3 9 +6 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Add Zeroconf.reconfirm_record / async_reconfirm_record (and the
AsyncZeroconf wrapper) so callers can hint to the cache that a record
may be stale — e.g. when an application-level connect to a discovered
service fails. Implements the cache-flush-on-failure mechanism described
in RFC 6762 §10.4.
Closes #1413
Behaviour
returns True if accepted, False if the record is not in the cache
or a reconfirmation is already in flight (dedupes by cache entry).
the §5.2 doubling-interval pattern and "two or more queries" minimum
from §10.4.
record is force-expired and listeners (e.g. ServiceBrowser) are
notified through the same goodbye path used for TTL-zero responses.
event loop.
Constants live in const.py (_RECONFIRM_QUERY_INTERVALS_MS,
_RECONFIRM_TIMEOUT_MS) with RFC citations next to them; please do not
tighten without an interop note.
Changes
plus .pxd updates for the new cdef public dict _reconfirm_tasks
and the new cpdef entry point
fixture in conftest.py
Test plan
closures inside cpdef)
Quality Report
Changes: 8 files changed, 331 insertions(+), 6 deletions(-)
Code scan: clean
Tests: passed (4 PASSED)
Branch hygiene: clean
Generated by Kōan post-mission quality pipeline