Skip to content

Commit

Permalink
修改rpc数据包最大大小为10M
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiiky committed Aug 8, 2018
1 parent 52a55b4 commit 6c6039d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/skywalker/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (c *Conn) read() []byte {
return nil
}
size := unpack(buf)
if size >= 5*1024*1024 { /* 限制最大数据长度为5M */
if size >= 10*1024*1024 { /* 限制最大数据长度为10M */
return nil
}
buf = make([]byte, size)
Expand Down

0 comments on commit 6c6039d

Please sign in to comment.