Skip to content

Commit

Permalink
private/piecestore: bump the streaming based BF size threshold
Browse files Browse the repository at this point in the history
This is a workaround for a production issue, where we generated bloom filters with max size 4100000, which may end with a packet with size of 4100003.

It would be better to make this one configurable, but right now, we can bump it quickly.

Change-Id: I025889916609775c2ad4e52dc21fb643d653356e
  • Loading branch information
elek committed Apr 10, 2024
1 parent 41d7ecd commit 190796a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/piecestore/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var errMessageTimeout = errors.New("message timeout")
const (
// retainMessageLimit defines the max size which can be sent via normal request/response protocol.
// 4MB is the absolute max, defined by DRPC RPC, but we need a few bytes for protobuf overhead / filter header.
retainMessageLimit = 4100000
retainMessageLimit = 4100050
)

var (
Expand Down

0 comments on commit 190796a

Please sign in to comment.