Skip to content

Commit

Permalink
fix: increase abci socket message size limit to 2GB (cometbft#1730)
Browse files Browse the repository at this point in the history
* 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 <anton.kalyaev@gmail.com>

* 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 <anton.kalyaev@gmail.com>
Co-authored-by: Thane Thomson <connect@thanethomson.com>
  • Loading branch information
3 people authored Dec 5, 2023
1 parent 999692e commit 092b918
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `[abci]` Increase ABCI socket message size limit to 2GB ([\#1730](https://github.com/cometbft/cometbft/pull/1730): @troykessler)
3 changes: 2 additions & 1 deletion abci/types/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package types

import (
"io"
"math"

"github.com/cosmos/gogoproto/proto"

Expand All @@ -10,7 +11,7 @@ import (
)

const (
maxMsgSize = 104857600 // 100MB
maxMsgSize = math.MaxInt32 // 2GB
)

// WriteMessage writes a varint length-delimited protobuf message.
Expand Down

0 comments on commit 092b918

Please sign in to comment.