mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
peer: reduce write timeout to 10s
This commit is contained in:
parent
603601a4c8
commit
db2c104111
1 changed files with 2 additions and 2 deletions
4
peer.go
4
peer.go
|
@ -44,8 +44,8 @@ const (
|
||||||
// idleTimeout is the duration of inactivity before we time out a peer.
|
// idleTimeout is the duration of inactivity before we time out a peer.
|
||||||
idleTimeout = 5 * time.Minute
|
idleTimeout = 5 * time.Minute
|
||||||
|
|
||||||
// writeMessageTimeout is the timeout used when writing a message to peer.
|
// writeMessageTimeout is the timeout used when writing a message to a peer.
|
||||||
writeMessageTimeout = 50 * time.Second
|
writeMessageTimeout = 10 * time.Second
|
||||||
|
|
||||||
// readMessageTimeout is the timeout used when reading a message from a
|
// readMessageTimeout is the timeout used when reading a message from a
|
||||||
// peer.
|
// peer.
|
||||||
|
|
Loading…
Add table
Reference in a new issue