|
|
|
@ -1287,13 +1287,15 @@ grpc_transport *grpc_create_cronet_transport(void *engine, const char *target, |
|
|
|
|
strcpy(ct->host, target); |
|
|
|
|
|
|
|
|
|
ct->use_packet_coalescing = true; |
|
|
|
|
for (size_t i = 0; i < args->num_args; i++) { |
|
|
|
|
if (0 == strcmp(args->args[i].key, GRPC_ARG_USE_CRONET_PACKET_COALESCING)) { |
|
|
|
|
if (args->args[i].type != GRPC_ARG_INTEGER) { |
|
|
|
|
gpr_log(GPR_ERROR, "%s ignored: it must be an integer", |
|
|
|
|
GRPC_ARG_USE_CRONET_PACKET_COALESCING); |
|
|
|
|
} else { |
|
|
|
|
ct->use_packet_coalescing = (args->args[i].value.integer != 0); |
|
|
|
|
if (args) { |
|
|
|
|
for (size_t i = 0; i < args->num_args; i++) { |
|
|
|
|
if (0 == strcmp(args->args[i].key, GRPC_ARG_USE_CRONET_PACKET_COALESCING)) { |
|
|
|
|
if (args->args[i].type != GRPC_ARG_INTEGER) { |
|
|
|
|
gpr_log(GPR_ERROR, "%s ignored: it must be an integer", |
|
|
|
|
GRPC_ARG_USE_CRONET_PACKET_COALESCING); |
|
|
|
|
} else { |
|
|
|
|
ct->use_packet_coalescing = (args->args[i].value.integer != 0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|