Allow unlimited size messages

pull/10449/head
Craig Tiller 8 years ago
parent 95a15a137c
commit 19b1f5edc9
  1. 4
      src/core/ext/filters/message_size/message_size_filter.c

@ -223,13 +223,13 @@ message_size_limits get_message_size_limits(
for (size_t i = 0; i < channel_args->num_args; ++i) {
if (strcmp(channel_args->args[i].key, GRPC_ARG_MAX_SEND_MESSAGE_LENGTH) ==
0) {
const grpc_integer_options options = {lim.max_send_size, 0, INT_MAX};
const grpc_integer_options options = {lim.max_send_size, -1, INT_MAX};
lim.max_send_size =
grpc_channel_arg_get_integer(&channel_args->args[i], options);
}
if (strcmp(channel_args->args[i].key,
GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH) == 0) {
const grpc_integer_options options = {lim.max_recv_size, 0, INT_MAX};
const grpc_integer_options options = {lim.max_recv_size, -1, INT_MAX};
lim.max_recv_size =
grpc_channel_arg_get_integer(&channel_args->args[i], options);
}

Loading…
Cancel
Save