grpc-dart icon indicating copy to clipboard operation
grpc-dart copied to clipboard

MaxMessageLength

Open farhodyusupov opened this issue 2 years ago • 7 comments

Is there any way to set up MaxMessageLength?

farhodyusupov avatar Aug 17 '23 01:08 farhodyusupov

No, but please feel free to file a PR to implement this in ChannelOptions.

mosuem avatar Aug 21 '23 12:08 mosuem

can you suggest something to start with?

farhodyusupov avatar Aug 28 '23 01:08 farhodyusupov

@jtattermusch I couldn't find any specs for this feature. Do specs for this exist, or is there a reference implementation?

mosuem avatar Aug 28 '23 08:08 mosuem

@mosuem I think this is about configuring CodedBufferReader's sizeLimit.

mraleph avatar Aug 28 '23 08:08 mraleph

@jtattermusch I couldn't find any specs for this feature. Do specs for this exist, or is there a reference implementation?

This is what's done for C-core: https://github.com/grpc/grpc/blob/12c97481349d88852490a4acd0b5a0f9301d5b6c/include/grpc/impl/channel_arg_names.h#L37 https://github.com/grpc/grpc/blob/12c97481349d88852490a4acd0b5a0f9301d5b6c/include/grpc/impl/channel_arg_names.h#L43

grpc-java would have something similar.

jtattermusch avatar Aug 28 '23 09:08 jtattermusch

thank you, If I could succeed I will send pull request

farhodyusupov avatar Aug 30 '23 04:08 farhodyusupov

@mosuem I think this is about configuring CodedBufferReader's sizeLimit.

I didn`t work

farhodyusupov avatar Sep 11 '23 04:09 farhodyusupov