mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-07 09:17:49 +08:00
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.
This commit is contained in:
parent
97e0f73e79
commit
a522a5a532
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user