Title: Cache eviction is too aggressive which results in records being called back that have not changed · Issue #1013 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: Cache eviction is too aggressive which results in records being called back that have not changed · Issue #1013 · python-zeroconf/python-zeroconf
X Title: Cache eviction is too aggressive which results in records being called back that have not changed · Issue #1013 · python-zeroconf/python-zeroconf
Description: Since A/SRV records typically expire in 120s, we evict them from the cache almost as soon as they expire. In practice some devices that care about these records frequently won't refresh them until they have seen them for 120s event if th...
Open Graph Description: Since A/SRV records typically expire in 120s, we evict them from the cache almost as soon as they expire. In practice some devices that care about these records frequently won't refresh them until ...
X Description: Since A/SRV records typically expire in 120s, we evict them from the cache almost as soon as they expire. In practice some devices that care about these records frequently won't refresh them un...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/1013
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cache eviction is too aggressive which results in records being called back that have not changed","articleBody":"Since A/SRV records typically expire in 120s, we evict them from the cache almost as soon as they expire.\r\n\r\nIn practice some devices that care about these records frequently won't refresh them until they have seen them for 120s event if they expire before than. We should keep them for 2X the ttl in the cache so we know not to callback updates when they haven't actually changed. This results in floods of callbacks as records are refreshed with no real actual changes.\r\n\r\n`python-zeroconf` is actually guilty of this as well because we have the problem where we use stale records from the cache in `add_question_or_all_cache` and `add_question_or_one_cache` so they don't get refreshed\r\n\r\nWe already have checks to not send them out or use them otherwise with the `record.is_expired` guards.\r\n\r\n","author":{"url":"https://github.com/bdraco","@type":"Person","name":"bdraco"},"datePublished":"2021-10-22T20:46:52Z","url":"https://github.com/python-zeroconf/python-zeroconf/issues/1013"}
| 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:5b58cb08-59bc-b7d0-bf9a-292ce749b570 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F1A:1B6314:92E388:C3B33C:6B00B631 |
| html-safe-nonce | 6f7d1253de23f7f9e4992c69da556b9a2e62c1786e34e6677a6a204dcc79f6ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjFBOjFCNjMxNDo5MkUzODg6QzNCMzNDOjZCMDBCNjMxIiwidmlzaXRvcl9pZCI6IjU0Mjk1NzIzMzAyNTI3MTE0NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 41eb27fcf2d8efeb160bfaf34e60a9fca3e144e97228390dd62a3ce1a7b99628 |
| hovercard-subject-tag | issue:1033936977 |
| 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/1013/issue_layout |
| twitter:image | https://opengraph.githubassets.com/132b82abfb0dd183b4e2012e6d76f87167785480a90ad4498a92c149f91df1eb/python-zeroconf/python-zeroconf/issues/1013 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/132b82abfb0dd183b4e2012e6d76f87167785480a90ad4498a92c149f91df1eb/python-zeroconf/python-zeroconf/issues/1013 |
| og:image:alt | Since A/SRV records typically expire in 120s, we evict them from the cache almost as soon as they expire. In practice some devices that care about these records frequently won't refresh them until ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bdraco |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d07c25977adfc5ff6acb0a962a9bc168c07afbda6fef765f9761c350c2ae4a2 |
| 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 | 5429cbfc6aca8c7b9a086a3c8f47400346f38cc9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width