peer: increase peer write timeout to 50 seconds

Sometimes when performing an initial sync, the remote
node isn't able to pull messages off the wire because
of long running tasks and queues are saturated. With
a shorter write timeout, we will give up trying to send
messages and teardown the connection, even though the
peer is still active.
This commit is contained in:
Conner Fromknecht 2018-07-31 14:38:29 -07:00
parent 121252934b
commit d4d90979ef
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -43,7 +43,7 @@ const (
idleTimeout = 5 * time.Minute
// writeMessageTimeout is the timeout used when writing a message to peer.
writeMessageTimeout = 10 * time.Second
writeMessageTimeout = 50 * time.Second
// outgoingQueueLen is the buffer size of the channel which houses
// messages to be sent across the wire, requested by objects outside