Skip to content

Commit 3239aca

Browse files
committed
p2p: bump global write timeout to 20s
The previous value of 5 seconds causes timeouts for legitimate messages if large messages are sent.
1 parent 2c24a73 commit 3239aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const (
3030
frameReadTimeout = 30 * time.Second
3131

3232
// Maximum amount of time allowed for writing a complete message.
33-
frameWriteTimeout = 5 * time.Second
33+
frameWriteTimeout = 20 * time.Second
3434
)
3535

3636
var errServerStopped = errors.New("server stopped")

0 commit comments

Comments
 (0)