Commit fad6c8ac authored by Steven Allen's avatar Steven Allen

feat: reduce request read timeout (#527)

This should stop us from waiting on unresponsive peers. This only kicks in when
we've already _sent_ a request so this:

* Shouldn't be blocked on other requests we're planning on making.
* Shouldn't be blocked on dialing.
parent 29bc71a0
......@@ -23,7 +23,7 @@ import (
"go.opencensus.io/tag"
)
var dhtReadMessageTimeout = time.Minute
var dhtReadMessageTimeout = 10 * time.Second
var dhtStreamIdleTimeout = 1 * time.Minute
var ErrReadTimeout = fmt.Errorf("timed out reading response")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment