提交 a522a5a5 作者: Juan Batiz-Benet

conn: larger max message.

With the new msgio, we no longer need to bound message sizes for
the sake of buffers. MaxMessageSize should remain though in order
to prevent streaming of huge things. In general, messages shouldn't
be above one MB. This max is now set to 4MB.

If a block happens to be larger, we should split it up.
上级 97e0f73e
......@@ -21,8 +21,8 @@ const (
// ChanBuffer is the size of the buffer in the Conn Chan
ChanBuffer = 10
// MaxMessageSize is the size of the largest single message
MaxMessageSize = 1 << 20
// MaxMessageSize is the size of the largest single message. (4MB)
MaxMessageSize = 1 << 22
// HandshakeTimeout for when nodes first connect
HandshakeTimeout = time.Second * 5
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论