libp2p / go-libp2p

libp2p implementation in Go
MIT License
5.97k stars 1.05k forks source link

swarm: should backoff on timeout #1552

Open Stebalien opened 6 years ago

Stebalien commented 6 years ago

In fixing libp2p/go-libp2p-kad-dht#96, we introduced a bug: we now don't backoff when the context is canceled. Unfortunately, this means we don't backoff if we timeout.

Stebalien commented 6 years ago

Actually, I'm not so sure... However, I am sure that we're not backing off on timeout...