googleapis / gax-ruby

Google API Extensions for Ruby
https://rubygems.org/gems/google-gax
BSD 3-Clause "New" or "Revised" License
20 stars 22 forks source link

How do I override grpc Max Receive Message Length ? #135

Closed brianarpie closed 6 years ago

brianarpie commented 6 years ago

Hi, I want to override this grpc configuration option because my use of google-cloud-ruby is hitting the 4.19MB limit: https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/grpc_types.h#L153 "GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH"

I'm looking at https://github.com/googleapis/gax-ruby/blob/master/lib/google/longrunning/operations_client.rb and I don't see anything about grpc options.

Is it possible to do it with a custom client_config object? Looking at the default config, it's not clear to me how I can modify it to change the grpc configuration: https://github.com/googleapis/gax-ruby/blob/master/lib/google/longrunning/operations_client_config.json

This is the google issue that brought me here: https://issuetracker.google.com/issues/113502127

Any help much appreciated, thanks!

brianarpie commented 6 years ago

I created somewhat of a duplicate ticket in google-cloud-ruby: https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues/2408

Incase it's possible to change the grpc channel config from there.

brianarpie commented 6 years ago

https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues/2408#issuecomment-418858124 ^-- gave me the answer I was looking for !