|
|
@ -101,10 +101,9 @@ grpc_error *grpc_chttp2_ping_parser_parse(grpc_exec_ctx *exec_ctx, void *parser, |
|
|
|
if (p->byte == 8) { |
|
|
|
if (p->byte == 8) { |
|
|
|
GPR_ASSERT(is_last); |
|
|
|
GPR_ASSERT(is_last); |
|
|
|
if (p->is_ack) { |
|
|
|
if (p->is_ack) { |
|
|
|
if (!g_disable_ping_ack) { |
|
|
|
|
|
|
|
grpc_chttp2_ack_ping(exec_ctx, t, p->opaque_8bytes); |
|
|
|
grpc_chttp2_ack_ping(exec_ctx, t, p->opaque_8bytes); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
if (!g_disable_ping_ack) { |
|
|
|
if (t->ping_ack_count == t->ping_ack_capacity) { |
|
|
|
if (t->ping_ack_count == t->ping_ack_capacity) { |
|
|
|
t->ping_ack_capacity = GPR_MAX(t->ping_ack_capacity * 3 / 2, 3); |
|
|
|
t->ping_ack_capacity = GPR_MAX(t->ping_ack_capacity * 3 / 2, 3); |
|
|
|
t->ping_acks = gpr_realloc( |
|
|
|
t->ping_acks = gpr_realloc( |
|
|
@ -114,6 +113,7 @@ grpc_error *grpc_chttp2_ping_parser_parse(grpc_exec_ctx *exec_ctx, void *parser, |
|
|
|
grpc_chttp2_initiate_write(exec_ctx, t, false, "ping response"); |
|
|
|
grpc_chttp2_initiate_write(exec_ctx, t, false, "ping response"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return GRPC_ERROR_NONE; |
|
|
|
return GRPC_ERROR_NONE; |
|
|
|
} |
|
|
|
} |
|
|
|