@cryptotaxi247 / kubo / commits / a522a5a53

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.

Juan Batiz-Benet committed Dec 6, 2014 at 11:27 UTC a522a5a53249703f8588eedf255caaf630e022f3
1 file changed +2 -2
net/conn/conn.go
+2 -2
@@ -21,8 +21,8 @@ const (
21 // ChanBuffer is the size of the buffer in the Conn Chan
22 ChanBuffer = 10
23
24 - // MaxMessageSize is the size of the largest single message
25 - MaxMessageSize = 1 << 20
24 + // MaxMessageSize is the size of the largest single message. (4MB)
25 + MaxMessageSize = 1 << 22
26
27 // HandshakeTimeout for when nodes first connect
28 HandshakeTimeout = time.Second * 5