From e81ada40ce6d29333b3b1ba26c34a549f8db5c79 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 10 Dec 2015 08:40:52 -0800 Subject: [PATCH] Fix bugs? --- src/core/transport/chttp2_transport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/transport/chttp2_transport.c b/src/core/transport/chttp2_transport.c index deb903324e9..e5b0fa9f898 100644 --- a/src/core/transport/chttp2_transport.c +++ b/src/core/transport/chttp2_transport.c @@ -863,8 +863,8 @@ 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) { - incoming_byte_stream_update_flow_control(transport_global, stream_global, 5, 0); + if (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); }