grpclib icon indicating copy to clipboard operation
grpclib copied to clipboard

Can the channel carry options?

Open inewlife opened this issue 5 years ago • 10 comments

just like conn = Channel(cache_address, options=[('grpc.max_message_length', 1024 * 1024 * 1024), ('grpc.max_send_message_length', 1024 * 1024 * 1024), ('grpc.max_receive_message_length', 1024 * 1024 * 1024)])

inewlife avatar Dec 20 '19 09:12 inewlife

Currently this is not implemented, but I plan to add such options in the future.

vmagamedov avatar Dec 20 '19 10:12 vmagamedov

Thanks Reply,When is the development planned?

inewlife avatar Dec 21 '19 01:12 inewlife

@vmagamedov has any progress been made for this?

lnshi avatar Feb 19 '20 06:02 lnshi

@lnshi Nope. Which options do you need?

vmagamedov avatar Feb 19 '20 09:02 vmagamedov

@vmagamedov currently i am using MaxRecvMsgSize, MaxSendMsgSize, InitialWindowSize and InitialConnWindowSize.

lnshi avatar Feb 19 '20 13:02 lnshi

Added http2_connection_window_size and http2_stream_window_size config values in ea13595e45316c43f55e579d14e0dac422e7d291

vmagamedov avatar Jun 11 '20 13:06 vmagamedov

I need grpc.ssl_target_name_override , so downstream traefik can dynamic route it to different servers. it's there a general way to set it, similar to grpcio options

DeoLeung avatar Sep 21 '23 07:09 DeoLeung

@DeoLeung Implemented ssl_target_name_override config option, please let me know if everything works as expected

vmagamedov avatar Oct 02 '23 18:10 vmagamedov

@DeoLeung Implemented ssl_target_name_override config option, please let me know if everything works as expected

thank you for the support. we will try it later.

FYI, we are using metadata, it seems to send as header, so we currently config traefik to route via header, just remember to use lower case :)

DeoLeung avatar Oct 05 '23 02:10 DeoLeung