arvidn / libtorrent

an efficient feature complete C++ bittorrent implementation

Home Page:http://libtorrent.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DHT Requests Timeout

cyrillicw opened this issue · comments

In order to download a file, the client makes requests to DHT in order to find out the peers to download from. If there are no such peers, then the client will repeat the effort again. Is there a possibility to regulate this timeout?

commented

There's no need for that. DHT works instantly. So you either found the peers or they are not available.

yes, there's a dht_announce_interval, which defaults to 15 minutes.

https://libtorrent.org/reference-Settings.html#dht_announce_interval

Thank you!