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:
parent
121252934b
commit
d4d90979ef
2
peer.go
2
peer.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user