From 8a09593639e797e609d7044e8230c2c2a73fcdcc Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 16 Dec 2015 19:40:49 -0800 Subject: [PATCH] Fix flow control for unstarted streams --- src/core/transport/chttp2_transport.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/transport/chttp2_transport.c b/src/core/transport/chttp2_transport.c index fd6fbe1c21d..4d1a5d9bcf5 100644 --- a/src/core/transport/chttp2_transport.c +++ b/src/core/transport/chttp2_transport.c @@ -872,7 +872,9 @@ static void perform_stream_op_locked( GPR_ASSERT(stream_global->recv_message_ready == NULL); stream_global->recv_message_ready = op->recv_message_ready; stream_global->recv_message = op->recv_message; - if (stream_global->incoming_frames.head == NULL || stream_global->incoming_frames.head->is_tail) { + if (stream_global->id != 0 && + (stream_global->incoming_frames.head == NULL || + stream_global->incoming_frames.head->is_tail)) { incoming_byte_stream_update_flow_control(transport_global, stream_global, transport_global->stream_lookahead, 0); } grpc_chttp2_list_add_check_read_ops(transport_global, stream_global);