Skip to content

Implement dht.put() backoff algorithm #135

Open
@lmatteis

Description

@lmatteis

To keep things alive in the DHT store (get/put), it's suggested an algorithm such as (http://libtorrent.org/dht_rss.html#re-announcing) to avoid overload of the network:

  1. pick one random item (i) from the local repository (except
    items already announced this round)
  2. If all items in the local repository have been announced
    2.1 terminate
  3. look up item i in the DHT
  4. If fewer than 8 nodes returned the item
    4.1 announce i to the DHT
    4.2 goto 1

However, I can't seem to find a way to see how many nodes returned the item after a get request. Is such functionality exposed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions