Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

grpc: received message larger than max error #173

Open
chowoocheol opened this issue Feb 6, 2020 · 0 comments
Open

grpc: received message larger than max error #173

chowoocheol opened this issue Feb 6, 2020 · 0 comments

Comments

@chowoocheol
Copy link

chowoocheol commented Feb 6, 2020

If followed below code (refer to swift-0.11.1),
the size of received massages shouldn't be a problem.

But, we've got below error message for more than 20MB size messages.
Does swift support 20MB message ?

swift code

// maxReceiveMsgSize uses 20MB as the default message size limit.
// the gRPC's default size is 4MB.
// Since Tiller has been change the messages' size to 20MB, so we should make this value to 20MB.
maxReceiveMsgSize = 1024 * 1024 * 20

error message

"message":"grpc: received message larger than max (4693470 vs. 4194304)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant