Specify a large value for max metadata size in grpc_cli client channel.

This is useful in cases where server sends back large stacktrace and
default value of 8192 isn't enough.
pull/24609/head
Parveen Kumar 4 years ago committed by Parveen Kumar
parent 486989f250
commit ec08d77474
  1. 3
      test/cpp/util/grpc_tool.cc

@ -235,6 +235,9 @@ std::shared_ptr<grpc::Channel> CreateCliChannel(
args.SetString(GRPC_ARG_SERVICE_CONFIG, args.SetString(GRPC_ARG_SERVICE_CONFIG,
FLAGS_default_service_config.c_str()); FLAGS_default_service_config.c_str());
} }
// See |GRPC_ARG_MAX_METADATA_SIZE| in |grpc_types.h|.
// Set to large enough size (10M) that should work for most use cases.
args.SetInt(GRPC_ARG_MAX_METADATA_SIZE, 10 * 1024 * 1024);
return ::grpc::CreateCustomChannel(server_address, cred.GetCredentials(), return ::grpc::CreateCustomChannel(server_address, cred.GetCredentials(),
args); args);
} }

Loading…
Cancel
Save