python gRPC: set max_message_length for server or listen port.

497 views
Skip to first unread message

Виталий Андросенко

unread,
Jan 19, 2017, 9:00:44 AM1/19/17
to grpc.io
I can set max_message_length for client:

grpc.insecure_channel(target=address or self.DEFAULT_ADDRESS,
options=[('grpc.max_message_length', max_message_length)])

How can I set max_message_length for server or listen port use python ???

Tanks all for answers.


Ken Payson

unread,
Jan 23, 2017, 2:18:12 PM1/23/17
to Виталий Андросенко, grpc.io
Currently this is not possible in Python.

In the master branch, there is an options field that works in the same way, and you can set grpc.max_receive_message_length/grpc.max_send_message_length.

This will be included in the 1.1 release which should be out relatively soon.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/105e20e5-0980-4c6e-a721-657304330cd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Виталий Андросенко

unread,
Jan 26, 2017, 4:57:33 PM1/26/17
to grpc.io, muata...@gmail.com
Thanks. We will wait for 1.1 release :)

понедельник, 23 января 2017 г., 21:18:12 UTC+2 пользователь Ken Payson написал:
Currently this is not possible in Python.

In the master branch, there is an options field that works in the same way, and you can set grpc.max_receive_message_length/grpc.max_send_message_length.

This will be included in the 1.1 release which should be out relatively soon.
On Thu, Jan 19, 2017 at 6:00 AM, Виталий Андросенко <muata...@gmail.com> wrote:
I can set max_message_length for client:

grpc.insecure_channel(target=address or self.DEFAULT_ADDRESS,
options=[('grpc.max_message_length', max_message_length)])

How can I set max_message_length for server or listen port use python ???

Tanks all for answers.


--
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+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages