diff options
author | yang-g <yangg@google.com> | 2015-07-22 23:11:56 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-07-22 23:14:43 -0700 |
commit | 6f30decf79da066bb199163a820a31fb057c0157 (patch) | |
tree | 859bd09c936bebde53305b43b7cc3ccb0d29d2aa /src/core | |
parent | 1451f2e919613175d105face69f5853a218e65f2 (diff) |
Flow control fix
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/transport/chttp2/writing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/transport/chttp2/writing.c b/src/core/transport/chttp2/writing.c index d8ec117aa5..041c4efd1f 100644 --- a/src/core/transport/chttp2/writing.c +++ b/src/core/transport/chttp2/writing.c @@ -66,7 +66,8 @@ int grpc_chttp2_unlocking_check_writes( /* for each grpc_chttp2_stream that's become writable, frame it's data (according to available window sizes) and add to the output buffer */ - while (grpc_chttp2_list_pop_writable_stream(transport_global, + while (transport_global->outgoing_window > 0 && + grpc_chttp2_list_pop_writable_stream(transport_global, transport_writing, &stream_global, &stream_writing)) { stream_writing->id = stream_global->id; |