René's URL Explorer Experiment


Title: IPv6 address still in duplicate address detection is skipped and never retried · Issue #1915 · python-zeroconf/python-zeroconf · GitHub

Open Graph Title: IPv6 address still in duplicate address detection is skipped and never retried · Issue #1915 · python-zeroconf/python-zeroconf

X Title: IPv6 address still in duplicate address detection is skipped and never retried · Issue #1915 · python-zeroconf/python-zeroconf

Description: Problem A link-local IPv6 address that is still in duplicate address detection (DAD, "tentative") cannot be bound. new_socket treats EADDRNOTAVAIL as benign, logs a warning and returns None, so the interface gets no responder socket. add...

Open Graph Description: Problem A link-local IPv6 address that is still in duplicate address detection (DAD, "tentative") cannot be bound. new_socket treats EADDRNOTAVAIL as benign, logs a warning and returns None, so the...

X Description: Problem A link-local IPv6 address that is still in duplicate address detection (DAD, "tentative") cannot be bound. new_socket treats EADDRNOTAVAIL as benign, logs a warning and returns No...

Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/1915

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IPv6 address still in duplicate address detection is skipped and never retried","articleBody":"## Problem\n\nA link-local IPv6 address that is still in duplicate address detection (DAD, \"tentative\") cannot be bound. `new_socket` treats `EADDRNOTAVAIL` as benign, logs a warning and returns `None`, so the interface gets no responder socket. `add_interface` then drops the multicast group membership it had just joined for that interface.\n\nNothing retries the bind. Once DAD finishes (about a second later) the address is usable, but the address set has not changed, so a caller that reconciles on address changes has no reason to call `async_update_interfaces` again. The instance stays without IPv6 on that interface until some unrelated address change.\n\n## Where\n\n- [`new_socket`](https://github.com/python-zeroconf/python-zeroconf/blob/4b6bd74a84d7f3382d5475a27ff7fd6ed0f4ceaf/src/zeroconf/_utils/net.py#L268-L274) returns `None` on `EADDRNOTAVAIL`.\n- [`add_interface`](https://github.com/python-zeroconf/python-zeroconf/blob/4b6bd74a84d7f3382d5475a27ff7fd6ed0f4ceaf/src/zeroconf/_utils/net.py#L462-L480) drops the group membership when the responder socket could not be created.\n\nThis affects both construction (`create_sockets`) and `async_update_interfaces`.\n\n## Reproduce\n\nStart a container on an IPv6-enabled Docker network and construct `AsyncZeroconf(ip_version=IPVersion.All)` as soon as the process starts:\n\n```\ndocker network create --ipv6 --subnet fd00:dead:beef::/64 zc6test\ndocker run --rm --network zc6test \u003cimage> python -c \"...\"\n```\n\nLog output:\n\n```\nWARNING zeroconf: Address not available when binding to ('fe80::943f:67ff:fe01:cbb8', 5353, 0, 11), it is expected to happen on some systems\n```\n\nThe instance has an IPv4 sender only. Calling `async_update_interfaces()` a few seconds later binds the link-local sender.\n\nSeen with 0.151.2 on Linux (arm64, Python 3.13). The same window exists whenever an interface comes up shortly before construction or a reconcile, for example at container or host boot.\n\n## Suggested fix\n\nTreat `EADDRNOTAVAIL` on an IPv6 address as retryable: remember the interfaces skipped for that reason and schedule one short internal retry (a few seconds), for both construction and `async_update_interfaces`.\n\nFiltering tentative addresses up front is not an option, since `ifaddr` does not expose `IFA_F_TENTATIVE`.\n\n## Workaround\n\nesphome/device-builder#2864 runs one extra `async_update_interfaces` ten seconds after startup and after each binding change.\n","author":{"url":"https://github.com/bdraco","@type":"Person","name":"bdraco"},"datePublished":"2026-09-28T09:23:49Z","url":"https://github.com/python-zeroconf/python-zeroconf/issues/1915"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:50835b12-2a1c-44ea-e03e-0e0dd8daf5fe
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBC1C:1534:8640:B28E:6B007D38
html-safe-nonce8ee9097b38e5124918fc797ff60845aa85bb4a8a9095cd10a5fa4d6d6093ab83
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzFDOjE1MzQ6ODY0MDpCMjhFOjZCMDA3RDM4IiwidmlzaXRvcl9pZCI6IjY1MTc2NjI0NTM1NTQ1Mzc1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac435869ba3af28e009630d0c2db854e0cbe126c29d1bc69d454f9ccb5b19fa9b5
hovercard-subject-tagissue:5612287928
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-zeroconf/python-zeroconf/1915/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1c29727b5432b339d7ed48dfca5933c6dba10f45608d3535b0619f48c0bb7012/python-zeroconf/python-zeroconf/issues/1915
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1c29727b5432b339d7ed48dfca5933c6dba10f45608d3535b0619f48c0bb7012/python-zeroconf/python-zeroconf/issues/1915
og:image:altProblem A link-local IPv6 address that is still in duplicate address detection (DAD, "tentative") cannot be bound. new_socket treats EADDRNOTAVAIL as benign, logs a warning and returns None, so the...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebdraco
hostnamegithub.com
expected-hostnamegithub.com
None82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/python-zeroconf/python-zeroconf/issues/1915#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2F1915
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%2Fissues%2F1915
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-zeroconf%2Fpython-zeroconf
Reloadhttps://github.com/python-zeroconf/python-zeroconf/issues/1915
Reloadhttps://github.com/python-zeroconf/python-zeroconf/issues/1915
Reloadhttps://github.com/python-zeroconf/python-zeroconf/issues/1915
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
https://github.com/python-zeroconf/python-zeroconf
New issuehttps://github.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1915
New issuehttps://github.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1915
IPv6 address still in duplicate address detection is skipped and never retriedhttps://github.com/python-zeroconf/python-zeroconf/issues/1915#top
https://github.com/bdraco
bdracohttps://github.com/bdraco
on Sep 28, 2026https://github.com/python-zeroconf/python-zeroconf/issues/1915#issue-5612287928
new_sockethttps://github.com/python-zeroconf/python-zeroconf/blob/4b6bd74a84d7f3382d5475a27ff7fd6ed0f4ceaf/src/zeroconf/_utils/net.py#L268-L274
add_interfacehttps://github.com/python-zeroconf/python-zeroconf/blob/4b6bd74a84d7f3382d5475a27ff7fd6ed0f4ceaf/src/zeroconf/_utils/net.py#L462-L480
esphome/device-builder#2864https://github.com/esphome/device-builder/pull/2864
https://github.com/Sharawey74
Sharawey74https://github.com/Sharawey74
on Oct 25, 2026https://github.com/python-zeroconf/python-zeroconf/issues/1915#issuecomment-6400960763
Sign up for freehttps://github.com/signup?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1915
Sign in to commenthttps://github.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1915
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.