fix: ensure cache does not return stale created and ttl values by bdraco · Pull Request #1469 · python-zeroconf/python-zeroconf
added 2 commits
January 8, 2025 11:04This PR corrects a severe flaw in the cache design The cache could return old stale records when the record was replaced in the underlying dict since the key is not updated. The following functions where affected: async_entries_with_name async_entries_with_server entries_with_name entries_with_server
bdraco
changed the title
fix: ensure cache always returns the values and not keys
fix: ensure cache does not return stale values
bdraco
changed the title
fix: ensure cache does not return stale values
fix: ensure cache does not return stale created and ttl values
bdraco
marked this pull request as ready for review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters