Title: NonUniqueNameException on identical records from different responders · Issue #163 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: NonUniqueNameException on identical records from different responders · Issue #163 · python-zeroconf/python-zeroconf
X Title: NonUniqueNameException on identical records from different responders · Issue #163 · python-zeroconf/python-zeroconf
Description: Per RFC 6762, identical records sent from several sources do not constitute a conflict. However, with python-zeroconf it works only sometimes. I wonder if Python dict ordering may be a problem. My current reproducer: import logging impor...
Open Graph Description: Per RFC 6762, identical records sent from several sources do not constitute a conflict. However, with python-zeroconf it works only sometimes. I wonder if Python dict ordering may be a problem. My ...
X Description: Per RFC 6762, identical records sent from several sources do not constitute a conflict. However, with python-zeroconf it works only sometimes. I wonder if Python dict ordering may be a problem. My ...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/163
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NonUniqueNameException on identical records from different responders","articleBody":"Per RFC 6762, identical records sent from several sources do not constitute a conflict. However, with python-zeroconf it works only sometimes. I wonder if Python dict ordering may be a problem. My current reproducer:\r\n```python\r\nimport logging\r\nimport socket\r\nimport sys\r\nfrom time import sleep\r\n\r\nfrom zeroconf import ServiceInfo, Zeroconf\r\n\r\nSERVICE = '_openstack._tcp.local.'\r\n\r\nif __name__ == '__main__':\r\n logging.basicConfig(level=logging.DEBUG)\r\n if len(sys.argv) > 1:\r\n assert sys.argv[1:] == ['--debug']\r\n logging.getLogger('zeroconf').setLevel(logging.DEBUG)\r\n\r\n info = ServiceInfo(SERVICE,\r\n 'baremetal.%s' % SERVICE,\r\n socket.inet_aton(\"192.168.42.17\"), 80,\r\n properties={'path': '/baremetal', 'proto': 'http'})\r\n info2 = ServiceInfo(SERVICE,\r\n 'baremetal-introspection.%s' % SERVICE,\r\n socket.inet_aton(\"192.168.42.17\"), 5050,\r\n properties={'proto': 'http'})\r\n\r\n zeroconf = Zeroconf()\r\n print(\"Registration of services, press Ctrl-C to exit...\")\r\n zeroconf.register_service(info)\r\n zeroconf.register_service(info2)\r\n try:\r\n while True:\r\n sleep(0.1)\r\n except KeyboardInterrupt:\r\n pass\r\n finally:\r\n print(\"Unregistering...\")\r\n zeroconf.unregister_service(info)\r\n zeroconf.close()\r\n```\r\nTry launching two instances of this script in parallel. If you comment out `zeroconf.register_service(info2)` things will work again.","author":{"url":"https://github.com/dtantsur","@type":"Person","name":"dtantsur"},"datePublished":"2019-04-09T09:56:49Z","url":"https://github.com/python-zeroconf/python-zeroconf/issues/163"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e67f9f8d-d0e2-0dbd-ae09-441e9cafc199 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EB6:397A11:49ABD8:630905:6B008E44 |
| html-safe-nonce | bfc3d31270db2248eb4b2aa2d258aaee3c5667a71c36c0d568981f4892de09f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUI2OjM5N0ExMTo0OUFCRDg6NjMwOTA1OjZCMDA4RTQ0IiwidmlzaXRvcl9pZCI6IjE1OTkxMjM4NDIwMTIzMTkzMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a3ad5d084075d63aa9fdc049ab89d2f625a915fa2109673fa7a6e8479fbc7442 |
| hovercard-subject-tag | issue:430876584 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-zeroconf/python-zeroconf/163/issue_layout |
| twitter:image | https://opengraph.githubassets.com/801d1b4364475ed7705d217f99c95ce84e942972cc6a83dfb14ea29a8bd9cd11/python-zeroconf/python-zeroconf/issues/163 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/801d1b4364475ed7705d217f99c95ce84e942972cc6a83dfb14ea29a8bd9cd11/python-zeroconf/python-zeroconf/issues/163 |
| og:image:alt | Per RFC 6762, identical records sent from several sources do not constitute a conflict. However, with python-zeroconf it works only sometimes. I wonder if Python dict ordering may be a problem. My ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dtantsur |
| hostname | github.com |
| expected-hostname | github.com |
| None | c710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git |
| octolytics-dimension-user_id | 120192235 |
| octolytics-dimension-user_login | python-zeroconf |
| octolytics-dimension-repository_id | 21548731 |
| octolytics-dimension-repository_nwo | python-zeroconf/python-zeroconf |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21548731 |
| octolytics-dimension-repository_network_root_nwo | python-zeroconf/python-zeroconf |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | be616a2a6ec1c609d6e002896dff5352d5c5f28b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width