mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 03:26:38 +00:00
p2p: bump global write timeout to 20s
The previous value of 5 seconds causes timeouts for legitimate messages if large messages are sent.
This commit is contained in:
parent
2c24a73e25
commit
3239aca69b
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ const (
|
||||||
frameReadTimeout = 30 * time.Second
|
frameReadTimeout = 30 * time.Second
|
||||||
|
|
||||||
// Maximum amount of time allowed for writing a complete message.
|
// Maximum amount of time allowed for writing a complete message.
|
||||||
frameWriteTimeout = 5 * time.Second
|
frameWriteTimeout = 20 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
var errServerStopped = errors.New("server stopped")
|
var errServerStopped = errors.New("server stopped")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue