René's URL Explorer Experiment


Title: Using IPVersion.All leads to OSError: [Errno 101] Network is unreachable logged · Issue #1357 · python-zeroconf/python-zeroconf · GitHub

Open Graph Title: Using IPVersion.All leads to OSError: [Errno 101] Network is unreachable logged · Issue #1357 · python-zeroconf/python-zeroconf

X Title: Using IPVersion.All leads to OSError: [Errno 101] Network is unreachable logged · Issue #1357 · python-zeroconf/python-zeroconf

Description: When using AsyncZeroconf(ip_version=IPVersion.All) this can lead to the following warning being logged: WARNING Error with socket 66 (('::1', 5353, 0, 0))): [Errno 101] Network is unreachable Traceback (most recent call last): File "/usr...

Open Graph Description: When using AsyncZeroconf(ip_version=IPVersion.All) this can lead to the following warning being logged: WARNING Error with socket 66 (('::1', 5353, 0, 0))): [Errno 101] Network is unreachable Trace...

X Description: When using AsyncZeroconf(ip_version=IPVersion.All) this can lead to the following warning being logged: WARNING Error with socket 66 (('::1', 5353, 0, 0))): [Errno 101] Network is unreachab...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using IPVersion.All leads to OSError: [Errno 101] Network is unreachable logged","articleBody":"When using `AsyncZeroconf(ip_version=IPVersion.All)` this can lead to the following warning being logged:\r\n\r\n```\r\nWARNING Error with socket 66 (('::1', 5353, 0, 0))): [Errno 101] Network is unreachable\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.11/asyncio/selector_events.py\", line 1196, in sendto\r\n    self._sock.sendto(data, addr)\r\nOSError: [Errno 101] Network is unreachable\r\n```\r\n\r\nIt seems that listening to the IPv6 loopback on it's own isn't problematic, but when trying to send to that socket, it leads to the above error. The problematic socket is created via `get_all_addresses_v6()`, which returns the loopback interface with the `::1` address (the full tuple being `(('::1', 0, 0), 1)`).\r\n\r\nThis then leads to a socket with the follow options created:\r\n```\r\nimport socket\r\nimport struct\r\ns = socket.socket(family=socket.AF_INET6, type=socket.SOCK_DGRAM)\r\ns.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, False)\r\ns.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)\r\ns.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)\r\ns.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTICAST_HOPS, 255)\r\ns.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTICAST_LOOP, True)\r\ns.bind(('::2', 5353, 0, 0))\r\ns.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTICAST_IF, struct.pack('@I', 1))\r\n```\r\n\r\nWhen this socket then is used, the stack trace appears:\r\n```\r\ns.sendto(b\"Hello\", ('ff02::fb', 5353, 0, 0))\r\n```\r\n```\r\nTraceback (most recent call last):\r\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\nOSError: [Errno 101] Network is unreachable\r\n```\r\n\r\nThe relevant option seem to be the IPv6 specific binding to the interface index `IPV6_MULTICAST_IF`, in this case 1 for the loopback interface.\r\n\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/agners","@type":"Person","name":"agners"},"datePublished":"2024-02-07T18:46:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/1357/python-zeroconf/issues/1357"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:902ff6c0-6af2-f4e7-1ad7-3109ef0eee83
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCA26:2E37C2:3445926:4659062:6971E934
html-safe-nonce49d1aec6b7f17c343950cb5ce8b3a42355b3a92bcb84a1ed991322d2597758c7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTI2OjJFMzdDMjozNDQ1OTI2OjQ2NTkwNjI6Njk3MUU5MzQiLCJ2aXNpdG9yX2lkIjoiMjIzMzYwOTY3NTQ3MzAyMTIzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbc6937e8993b71290c59b31b848fe57ae33ca85f17cbb5f29839199c4161bfb7
hovercard-subject-tagissue:2123656514
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/1357/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ef6ff04567d9be0ebcc84bc218994bf6c56a61446c30a5cc84ba006b580aaa5c/python-zeroconf/python-zeroconf/issues/1357
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ef6ff04567d9be0ebcc84bc218994bf6c56a61446c30a5cc84ba006b580aaa5c/python-zeroconf/python-zeroconf/issues/1357
og:image:altWhen using AsyncZeroconf(ip_version=IPVersion.All) this can lead to the following warning being logged: WARNING Error with socket 66 (('::1', 5353, 0, 0))): [Errno 101] Network is unreachable Trace...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameagners
hostnamegithub.com
expected-hostnamegithub.com
None683712716975b3393656edf09255a1d488d0e68ab7b9ac97e40ecf40036f696c
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
releaseed99da4e2de688dd1056894c1eccd4c82c6bbbfe
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1357#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2F1357
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-zeroconf%2Fpython-zeroconf%2Fissues%2F1357
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1357
Reloadhttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1357
Reloadhttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1357
python-zeroconf https://patch-diff.githubusercontent.com/python-zeroconf
python-zeroconfhttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf
Fork 232 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf
Star 704 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-zeroconf%2Fpython-zeroconf
Code https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf
Issues 50 https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues
Pull requests 5 https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/pulls
Discussions https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/discussions
Actions https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/actions
Projects 0 https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/projects
Wiki https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1357
Insights https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/pulse
Code https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf
Issues https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues
Pull requests https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/pulls
Discussions https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/discussions
Actions https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/actions
Projects https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/projects
Wiki https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/wiki
Security https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/security
Insights https://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1357
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-zeroconf/python-zeroconf/issues/1357
Using IPVersion.All leads to OSError: [Errno 101] Network is unreachable loggedhttps://patch-diff.githubusercontent.com/python-zeroconf/python-zeroconf/issues/1357#top
https://github.com/agners
https://github.com/agners
agnershttps://github.com/agners
on Feb 7, 2024https://github.com/python-zeroconf/python-zeroconf/issues/1357#issue-2123656514
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.