zeroconf
zeroconf copied to clipboard
delete entries from the cache when the TTL expires
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.
@grandcat Friendly ping. Could I get a review of this PR?
Could you rebase this PR on latest master, please?