瀏覽代碼

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 10 年之前
父節點
當前提交
3239aca69b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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")