diff options
author | Craig Tiller <ctiller@google.com> | 2017-02-03 10:47:59 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-02-03 10:47:59 -0800 |
commit | 4fd2bf6ec964dae973040984e5b5b387fe2f72e1 (patch) | |
tree | 382d256e42e292896d235598163020650dee958d /src/core/ext | |
parent | bc335df49d32c3cada5d9b6d0ff7c6a8ac283f52 (diff) |
Dont credit flow control after stream has closed reading
Diffstat (limited to 'src/core/ext')
-rw-r--r-- | src/core/ext/transport/chttp2/transport/chttp2_transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c index 272f5fcf8c..fb5ae575db 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.c @@ -2037,7 +2037,7 @@ static void incoming_byte_stream_update_flow_control(grpc_exec_ctx *exec_ctx, /* add some small lookahead to keep pipelines flowing */ GPR_ASSERT(max_recv_bytes <= UINT32_MAX - initial_window_size); - if (s->incoming_window_delta < max_recv_bytes) { + if (s->incoming_window_delta < max_recv_bytes && !s->read_closed) { uint32_t add_max_recv_bytes = (uint32_t)(max_recv_bytes - s->incoming_window_delta); grpc_chttp2_stream_write_type write_type = |