mediachain / concat

Mediachain daemons
MIT License
42 stars 13 forks source link

Reduce directory lookup timeout #105

Closed vyzo closed 7 years ago

vyzo commented 7 years ago

this tunes the directory lookup timeout to 5s, so that a single directory failure (or libp2p acting mysterious and failing to connect) will not hold up a dht lookup for a full 10s in the case of unregistered nodes.

Could be even lower, maybe 2-3s, but I would rather be conservative with this; 5s is a potentially slow lookup from the dht, but not intolerably so.