grpc Java client Outbound messages size limitations ?

880 views
Skip to first unread message

cr2...@gmail.com

unread,
Nov 8, 2017, 1:21:37 PM11/8/17
to grpc.io
Hi
 I know of maxInboundMessageSize for incoming messages to a client Are there any controls/restrictions on outbound ?
  I also know the server can also restrict on how much it will receive (it's inbound) but not really interested in that, just client side configurations/restrictions.

Thanks

Kun Zhang

unread,
Nov 8, 2017, 1:30:30 PM11/8/17
to grpc.io
There is CallOptions.withMaxOutboundMessageSize().
If you want to enforce it channel-wide, you can create an interceptor to override the CallOptions.

Eric Anderson

unread,
Nov 8, 2017, 5:09:10 PM11/8/17
to Kun Zhang, grpc.io
What are you hoping to achieve?

The outbound limit was added to support a key in service config, but that implementation will be changing to avoid the CallOption. So I was looking at deleting it. Note that by default outbound is unbounded.

--
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/5730dbf9-4117-4873-8c89-b48d6788f230%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

cr2...@gmail.com

unread,
Nov 8, 2017, 5:17:56 PM11/8/17
to grpc.io
Nothing -- I don't ever try to set the bar that high ;)
I seen a Node implementation was setting something on outbound and was worried I was missing something on the Java.  Making sure there was no limit for outbound which just fine for me. :)

On Wednesday, November 8, 2017 at 5:09:10 PM UTC-5, Eric Anderson wrote:
What are you hoping to achieve?

The outbound limit was added to support a key in service config, but that implementation will be changing to avoid the CallOption. So I was looking at deleting it. Note that by default outbound is unbounded.
On Wed, Nov 8, 2017 at 10:30 AM, 'Kun Zhang' via grpc.io <grp...@googlegroups.com> wrote:
There is CallOptions.withMaxOutboundMessageSize().
If you want to enforce it channel-wide, you can create an interceptor to override the CallOptions.

On Wednesday, November 8, 2017 at 10:21:37 AM UTC-8, cr2...@gmail.com wrote:
Hi
 I know of maxInboundMessageSize for incoming messages to a client Are there any controls/restrictions on outbound ?
  I also know the server can also restrict on how much it will receive (it's inbound) but not really interested in that, just client side configurations/restrictions.

Thanks

--
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.

To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
Reply all
Reply to author
Forward
0 new messages