René's URL Explorer Experiment


Title: feat: add reconfirm_record per RFC 6762 §10.4 by bluetoothbot · Pull Request #1772 · python-zeroconf/python-zeroconf · GitHub

Open Graph Title: feat: add reconfirm_record per RFC 6762 §10.4 by bluetoothbot · Pull Request #1772 · python-zeroconf/python-zeroconf

X Title: feat: add reconfirm_record per RFC 6762 §10.4 by bluetoothbot · Pull Request #1772 · python-zeroconf/python-zeroconf

Description: 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 async_reconfirm_record(record) schedules a background task and 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 background task re-queries the record at t=0, 1s, 3s — the §5.2 doubling-interval pattern and "two or more queries" minimum from §10.4. If no fresh copy of the record lands in the cache by t=10s, the record is force-expired and listeners (e.g. ServiceBrowser) are notified through the same goodbye path used for TTL-zero responses. reconfirm_record is the threadsafe variant for callers off the 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 Zeroconf.async_reconfirm_record / Zeroconf.reconfirm_record in _core.py AsyncZeroconf.async_reconfirm_record in asyncio.py Background reconfirm pipeline in RecordManager (_handlers/record_manager.py) plus .pxd updates for the new cdef public dict _reconfirm_tasks and the new cpdef entry point Timing constants in const.py README section explaining when callers should use it tests/test_reconfirm.py (9 tests) and a quick_reconfirm_timing fixture in conftest.py Test plan pytest tests/test_reconfirm.py (9 passed) pytest tests/ (404 passed, 2 skipped) — no regressions ruff check src/ tests/ — clean Cython rebuild of _handlers/record_manager.py succeeds (no 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

Open Graph Description: 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 t...

X Description: 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 t...

Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/pull/1772

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ab195130-5083-4011-e9e2-5bbeafe80713
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id835C:1A2DA6:CF713:11F5DD:6B008033
html-safe-nonceb35d2375f9cf7a4a92293af55c67c7fddde1e0ee6f87e09e1ea8ff16c39df398
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzVDOjFBMkRBNjpDRjcxMzoxMUY1REQ6NkIwMDgwMzMiLCJ2aXNpdG9yX2lkIjoiODEyNTkzMDkzMzAwMjk5MzcxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5685149a432057d6b2bb8e16b4898d31c62b25ddb348362368139e5b91ef9eb8
hovercard-subject-tagpull_request:3727001639
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-zeroconf/python-zeroconf/pull/1772/files
twitter:imagehttps://avatars.githubusercontent.com/u/284751220?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/284751220?s=400&v=4
og:image:altSummary 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 t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git
octolytics-dimension-user_id120192235
octolytics-dimension-user_loginpython-zeroconf
octolytics-dimension-repository_id21548731
octolytics-dimension-repository_nwopython-zeroconf/python-zeroconf
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21548731
octolytics-dimension-repository_network_root_nwopython-zeroconf/python-zeroconf
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released1bc2aa1939001689f5ce935982c10a6138f745c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fpull%2F1772%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fpull%2F1772%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-zeroconf%2Fpython-zeroconf
Reloadhttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files
Reloadhttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files
Reloadhttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files
python-zeroconfhttps://github.com/python-zeroconf
python-zeroconfhttps://github.com/python-zeroconf/python-zeroconf
Codehttps://github.com/python-zeroconf/python-zeroconf
Issues50 (50)https://github.com/python-zeroconf/python-zeroconf/issues
Pull requests16 (16)https://github.com/python-zeroconf/python-zeroconf/pulls
Discussionshttps://github.com/python-zeroconf/python-zeroconf/discussions
Actionshttps://github.com/python-zeroconf/python-zeroconf/actions
Projectshttps://github.com/python-zeroconf/python-zeroconf/projects
Wikihttps://github.com/python-zeroconf/python-zeroconf/wiki
Security and quality5 (5)https://github.com/python-zeroconf/python-zeroconf/security
Insightshttps://github.com/python-zeroconf/python-zeroconf/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2Fnew%2Fchoose
bluetoothbothttps://github.com/bluetoothbot
python-zeroconf:masterhttps://github.com/python-zeroconf/python-zeroconf/tree/master
bluetoothbot:koan/implement-1413https://github.com/bluetoothbot/python-zeroconf/tree/koan/implement-1413
Conversation 2 https://github.com/python-zeroconf/python-zeroconf/pull/1772
Commits 1 https://github.com/python-zeroconf/python-zeroconf/pull/1772/commits
Checks 35 https://github.com/python-zeroconf/python-zeroconf/pull/1772/checks
Files changed https://github.com/python-zeroconf/python-zeroconf/pull/1772/files
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files
feat: add reconfirm_record per RFC 6762 §10.4 https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#top
Show all changes 1 commit https://github.com/python-zeroconf/python-zeroconf/pull/1772/files
56f1495 feat: add reconfirm_record per RFC 6762 §10.4 bluetoothbot May 21, 2026 https://github.com/python-zeroconf/python-zeroconf/pull/1772/commits/56f14955b70830a920fb6b65804e5493e1a5c32f
Clear filters https://github.com/python-zeroconf/python-zeroconf/pull/1772/files
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files
README.rst https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-7b3ed02bc73dc06b7db906cf97aa91dec2b2eb21f2d92bc5caa761df5bbc168f
_core.py https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-334d60456692812966fc9644e6d71b6e2c60dfc6fb2d02d02d5fef6a480c360d
record_manager.pxd https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-0c4d5b812ddbf494f1afc4383f323367eb6bb6817ac33c2a19d55d75f12d9f11
record_manager.py https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-f1737ce73cad1a974e837532d241813eeebb0234d27116449fd8d7a79df494f6
asyncio.py https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-96bdd1e4e7a9ff49c66e746ace69a44b9a538be08cc39b7c38139bb78e81cf14
const.py https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-2925fab357e035f1e0cb51ebce6d44e682392bccd5b6b5809dc1f5ea78d6d9b4
conftest.py https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
test_reconfirm.py https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-fad3db25209308a50ae0952932eace914c6dab08a9b80bed72bcf64f286e85b1
README.rsthttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-7b3ed02bc73dc06b7db906cf97aa91dec2b2eb21f2d92bc5caa761df5bbc168f
View file https://github.com/python-zeroconf/python-zeroconf/blob/56f14955b70830a920fb6b65804e5493e1a5c32f/README.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1772/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-7b3ed02bc73dc06b7db906cf97aa91dec2b2eb21f2d92bc5caa761df5bbc168f
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-7b3ed02bc73dc06b7db906cf97aa91dec2b2eb21f2d92bc5caa761df5bbc168f
src/zeroconf/_core.pyhttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-334d60456692812966fc9644e6d71b6e2c60dfc6fb2d02d02d5fef6a480c360d
View file https://github.com/python-zeroconf/python-zeroconf/blob/56f14955b70830a920fb6b65804e5493e1a5c32f/src/zeroconf/_core.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1772/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-334d60456692812966fc9644e6d71b6e2c60dfc6fb2d02d02d5fef6a480c360d
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-334d60456692812966fc9644e6d71b6e2c60dfc6fb2d02d02d5fef6a480c360d
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-334d60456692812966fc9644e6d71b6e2c60dfc6fb2d02d02d5fef6a480c360d
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-334d60456692812966fc9644e6d71b6e2c60dfc6fb2d02d02d5fef6a480c360d
src/zeroconf/_handlers/record_manager.pxdhttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-0c4d5b812ddbf494f1afc4383f323367eb6bb6817ac33c2a19d55d75f12d9f11
View file https://github.com/python-zeroconf/python-zeroconf/blob/56f14955b70830a920fb6b65804e5493e1a5c32f/src/zeroconf/_handlers/record_manager.pxd
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1772/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-0c4d5b812ddbf494f1afc4383f323367eb6bb6817ac33c2a19d55d75f12d9f11
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-0c4d5b812ddbf494f1afc4383f323367eb6bb6817ac33c2a19d55d75f12d9f11
src/zeroconf/_handlers/record_manager.pyhttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-f1737ce73cad1a974e837532d241813eeebb0234d27116449fd8d7a79df494f6
View file https://github.com/python-zeroconf/python-zeroconf/blob/56f14955b70830a920fb6b65804e5493e1a5c32f/src/zeroconf/_handlers/record_manager.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1772/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-f1737ce73cad1a974e837532d241813eeebb0234d27116449fd8d7a79df494f6
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-f1737ce73cad1a974e837532d241813eeebb0234d27116449fd8d7a79df494f6
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-f1737ce73cad1a974e837532d241813eeebb0234d27116449fd8d7a79df494f6
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-f1737ce73cad1a974e837532d241813eeebb0234d27116449fd8d7a79df494f6
src/zeroconf/asyncio.pyhttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-96bdd1e4e7a9ff49c66e746ace69a44b9a538be08cc39b7c38139bb78e81cf14
View file https://github.com/python-zeroconf/python-zeroconf/blob/56f14955b70830a920fb6b65804e5493e1a5c32f/src/zeroconf/asyncio.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1772/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-96bdd1e4e7a9ff49c66e746ace69a44b9a538be08cc39b7c38139bb78e81cf14
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-96bdd1e4e7a9ff49c66e746ace69a44b9a538be08cc39b7c38139bb78e81cf14
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-96bdd1e4e7a9ff49c66e746ace69a44b9a538be08cc39b7c38139bb78e81cf14
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-96bdd1e4e7a9ff49c66e746ace69a44b9a538be08cc39b7c38139bb78e81cf14
src/zeroconf/const.pyhttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-2925fab357e035f1e0cb51ebce6d44e682392bccd5b6b5809dc1f5ea78d6d9b4
View file https://github.com/python-zeroconf/python-zeroconf/blob/56f14955b70830a920fb6b65804e5493e1a5c32f/src/zeroconf/const.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1772/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-2925fab357e035f1e0cb51ebce6d44e682392bccd5b6b5809dc1f5ea78d6d9b4
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-2925fab357e035f1e0cb51ebce6d44e682392bccd5b6b5809dc1f5ea78d6d9b4
tests/conftest.pyhttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
View file https://github.com/python-zeroconf/python-zeroconf/blob/56f14955b70830a920fb6b65804e5493e1a5c32f/tests/conftest.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-zeroconf/python-zeroconf/pull/1772/{{ revealButtonHref }}
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
https://github.com/python-zeroconf/python-zeroconf/pull/1772/files#diff-e52e4ddd58b7ef887ab03c04116e676f6280b824ab7469d5d3080e5cba4f2128
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files
Please reload this pagehttps://github.com/python-zeroconf/python-zeroconf/pull/1772/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.