Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

grpc / grpc Public

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting of max message size for protobuf message #9160

grauer-hase opened this issue Dec 19, 2016 · 0 comments

Setting of max message size for protobuf message #9160

grauer-hase opened this issue Dec 19, 2016 · 0 comments

Comments

grauer-hase commented Dec 19, 2016

I need to change the ptotobuf max message size. Currently there is a limit of 64 MB and I receive this message:
protobuf: Reading dangerously large protocol message. If the message turns out to be larger than 67108864 bytes, parsing will be halted for security reasons. To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.

I cannot figure out how to change this limit. I found only the way to change the message limit on the channel.

grpc::ChannelArguments channel_args; channel_args.SetInt("grpc.max_message_length", 100 * 1024 * 1024); 

Could you please give me a hint, where to look into. In the file 'call.h' there is a class Call with the param called max_message_size_, but the constructor is always called with a default value -1 and I dont know how to pass my own limit.

The text was updated successfully, but these errors were encountered: