Explorar o código

p2p: bump global write timeout to 20s

The previous value of 5 seconds causes timeouts for legitimate messages
if large messages are sent.
Felix Lange %!s(int64=10) %!d(string=hai) anos
pai
achega
3239aca69b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      p2p/server.go

+ 1 - 1
p2p/server.go

@@ -30,7 +30,7 @@ const (
 	frameReadTimeout = 30 * time.Second
 
 	// Maximum amount of time allowed for writing a complete message.
-	frameWriteTimeout = 5 * time.Second
+	frameWriteTimeout = 20 * time.Second
 )
 
 var errServerStopped = errors.New("server stopped")