maidsafe-archive / crust

Reliable p2p network connections in Rust with NAT traversal. One of the most needed libraries for any server-less / decentralised projects
BSD 3-Clause "New" or "Revised" License
956 stars 126 forks source link

Fix bootstrap cache flushing #1127

Closed povilasb closed 5 years ago

povilasb commented 5 years ago
  1. After peer inactivity timeout, peer contacts are evicted from the bootstrap cache.
  2. Then cache validator picks this peer up and sends some request to it to see, if it's alive.
  3. If peer responds within some time, it is readded to the bootstrap cache.
  4. The problem was that in this case bootstrap cache was not flushed to disk. This PR fixes that.