bmuller / kademlia

A DHT in Python using asyncio
http://kademlia.readthedocs.org
MIT License
830 stars 210 forks source link

Periodic republishing of key-value pairs causes TTL expiration deletion to fail? #104

Open kkisbug opened 1 year ago

kkisbug commented 1 year ago

I noticed that the logic to republish key-value pairs every hour seems to refresh the timestamp of the key-value pairs (via the _refresh_table method in network.py), thereby causing the TTL expiration deletion logic for the key-value pairs to become ineffective (if the expiration time is longer than the republishing interval). Is this intentional?