Yes. You can set the inbound (receiving) message size via a channel 
argument "grpc.max_receive_message_length" (see definition 
<https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/grpc_types.h#L153>
)

Here is an example for how to specify channel 
arguments: 
https://github.com/grpc/grpc/blob/master/examples/python/helloworld/greeter_client_with_options.py#L31

The unit for "grpc.max_receive_message_length" is bytes. If the target 
limit is 1G, the application can set `("grpc.max_receive_message_length", 
1024*1024*1024)` as one of the channel argument.

On Wednesday, October 14, 2020 at 5:10:26 PM UTC-7 busu...@google.com wrote:

> grpc-java appears to have a `maxInboundMessageSize` 
> https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html#maxInboundMessageSize-int-
>  
> that allows the max inbound message size to be changed.
>
> Is there a similar option for Python?
>
> I see 
> https://groups.google.com/forum/#!searchin/grpc-io/max$20message$20size$20python%7Csort:date/grpc-io/HPLqOjAq2XI/mWrlGZ8cAgAJ
>  
> but it seems to be for max send message size.
>
> Context:
> Some requests to the Cloud Text-to-Speech API result in responses that 
> exceed the 4MB default: 
> https://github.com/googleapis/python-texttospeech/issues/5
> Googlers see internal issue 170125537
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/46582f68-a68c-49f2-8412-8f289a137d7dn%40googlegroups.com.

Reply via email to