From e889314fa2ff4d755c400a481831cc0c39a4c893 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 23 Apr 2015 16:02:01 -0700 Subject: Allow round-robin again in flow control --- src/core/transport/chttp2_transport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/transport/chttp2_transport.c') diff --git a/src/core/transport/chttp2_transport.c b/src/core/transport/chttp2_transport.c index 2261b087a2..3d276b1629 100644 --- a/src/core/transport/chttp2_transport.c +++ b/src/core/transport/chttp2_transport.c @@ -893,10 +893,11 @@ static int prepare_write(transport *t) { } /* we should either exhaust window or have no ops left, but not both */ - GPR_ASSERT(s->outgoing_sopb->nops == 0 || s->outgoing_window <= 0); if (s->outgoing_sopb->nops == 0) { s->outgoing_sopb = NULL; schedule_cb(t, s->send_done_closure, 1); + } else if (s->outgoing_window) { + stream_list_add_tail(t, s, WRITABLE); } } -- cgit v1.2.3