aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2017-06-22 11:32:36 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2017-09-18 13:35:48 -0700
commit18ea66fe3787ed27cc444a68451de05e34c4d024 (patch)
tree8d2dbb969e0b938a6eb50266f4e57af479b42fa8 /src/core
parent1ecbebc08fe578236fbedefe770aa54b157221b4 (diff)
Update writing.c with the trailers-only response change
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ext/transport/chttp2/transport/writing.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/ext/transport/chttp2/transport/writing.c b/src/core/ext/transport/chttp2/transport/writing.c
index 8721803267..7d9d4867e1 100644
--- a/src/core/ext/transport/chttp2/transport/writing.c
+++ b/src/core/ext/transport/chttp2/transport/writing.c
@@ -268,8 +268,7 @@ grpc_chttp2_begin_write_result grpc_chttp2_begin_write(
.stats = &s->stats.outgoing};
grpc_chttp2_encode_header(exec_ctx, &t->hpack_compressor, NULL, 0,
s->send_initial_metadata, &hopt, &t->outbuf);
- t->ping_state.pings_before_data_required =
- t->ping_policy.max_pings_without_data;
+ now_writing = true;
if (!t->is_client) {
t->ping_recv_state.last_ping_recv_time =
gpr_inf_past(GPR_CLOCK_MONOTONIC);