Skip to content

Commit 092b918

Browse files
troykesslermelekesthanethomson
authored
fix: increase abci socket message size limit to 2GB (tendermint#1730)
* fix: increase abci socket message size to 2GB * fix: added .changelog * Update .changelog/unreleased/improvements/1730-increase-abci-socket-message-size-limit Co-authored-by: Anton Kaliaev <[email protected]> * fix: use MaxInt32 as message size for 32-bit systems * Update .changelog/unreleased/improvements/1730-increase-abci-socket-message-size-limit --------- Co-authored-by: Anton Kaliaev <[email protected]> Co-authored-by: Thane Thomson <[email protected]>
1 parent 999692e commit 092b918

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- `[abci]` Increase ABCI socket message size limit to 2GB ([\#1730](https://github.com/cometbft/cometbft/pull/1730): @troykessler)

abci/types/messages.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package types
22

33
import (
44
"io"
5+
"math"
56

67
"github.com/cosmos/gogoproto/proto"
78

@@ -10,7 +11,7 @@ import (
1011
)
1112

1213
const (
13-
maxMsgSize = 104857600 // 100MB
14+
maxMsgSize = math.MaxInt32 // 2GB
1415
)
1516

1617
// WriteMessage writes a varint length-delimited protobuf message.

0 commit comments

Comments
 (0)