|
|
@ -126,8 +126,8 @@ grpc_channel *grpc_channel_create(grpc_exec_ctx *exec_ctx, const char *target, |
|
|
|
/* setting this takes precedence over anything else */ |
|
|
|
/* setting this takes precedence over anything else */ |
|
|
|
GRPC_MDELEM_UNREF(channel->default_authority); |
|
|
|
GRPC_MDELEM_UNREF(channel->default_authority); |
|
|
|
} |
|
|
|
} |
|
|
|
channel->default_authority = grpc_mdelem_from_strings( |
|
|
|
channel->default_authority = |
|
|
|
":authority", args->args[i].value.string); |
|
|
|
grpc_mdelem_from_strings(":authority", args->args[i].value.string); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (0 == |
|
|
|
} else if (0 == |
|
|
|
strcmp(args->args[i].key, GRPC_SSL_TARGET_NAME_OVERRIDE_ARG)) { |
|
|
|
strcmp(args->args[i].key, GRPC_SSL_TARGET_NAME_OVERRIDE_ARG)) { |
|
|
@ -156,8 +156,7 @@ grpc_channel *grpc_channel_create(grpc_exec_ctx *exec_ctx, const char *target, |
|
|
|
GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM)) { |
|
|
|
GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM)) { |
|
|
|
channel->compression_options.default_algorithm.is_set = true; |
|
|
|
channel->compression_options.default_algorithm.is_set = true; |
|
|
|
GPR_ASSERT(args->args[i].value.integer >= 0 && |
|
|
|
GPR_ASSERT(args->args[i].value.integer >= 0 && |
|
|
|
args->args[i].value.integer < |
|
|
|
args->args[i].value.integer < GRPC_COMPRESS_ALGORITHMS_COUNT); |
|
|
|
GRPC_COMPRESS_ALGORITHMS_COUNT); |
|
|
|
|
|
|
|
channel->compression_options.default_algorithm.algorithm = |
|
|
|
channel->compression_options.default_algorithm.algorithm = |
|
|
|
(grpc_compression_algorithm)args->args[i].value.integer; |
|
|
|
(grpc_compression_algorithm)args->args[i].value.integer; |
|
|
|
} else if (0 == |
|
|
|
} else if (0 == |
|
|
|