zeroconf icon indicating copy to clipboard operation
zeroconf copied to clipboard

delete entries from the cache when the TTL expires

Open marten-seemann opened this issue 4 years ago • 2 comments

Instead of saving the TTL value (an integer, measuring the time in seconds), we now save the expiry timestamp for every response we receive. A "cleanup" go routine then goes through our cache every 10s and removes entries that have expired.

marten-seemann avatar Jun 06 '21 04:06 marten-seemann

@grandcat Friendly ping. Could I get a review of this PR?

marten-seemann avatar Jun 27 '21 22:06 marten-seemann

Could you rebase this PR on latest master, please?

grandcat avatar Jul 05 '21 17:07 grandcat