libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.io
Other
2.27k stars 436 forks source link

fix: time out DHT network requests separately from query #2524

Closed achingbrain closed 2 months ago

achingbrain commented 2 months ago

Apply a per-request timeout to each network request in a DHT query.

To avoid having a "one size fits all" timeout, it is adaptive so will increase/decrease based on the average success/failure times during the previous (configurable, default 5s) time interval.

Change checklist