aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/transport
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2017-11-14 11:34:26 -0800
committerGravatar Yuchen Zeng <zyc@google.com>2017-11-14 11:34:26 -0800
commitabfb4f8d5bdcb6f0b81e389d321c58bf03485a68 (patch)
treeaff1acaadd945bca136b82c952b515a6bb2f307f /src/core/ext/transport
parent54e8f37e537794c2d814c1604c1282125f64f093 (diff)
Handle negative remote_window
Diffstat (limited to 'src/core/ext/transport')
-rw-r--r--src/core/ext/transport/chttp2/transport/writing.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/transport/chttp2/transport/writing.cc b/src/core/ext/transport/chttp2/transport/writing.cc
index 6154bdb682..e3ba5b124d 100644
--- a/src/core/ext/transport/chttp2/transport/writing.cc
+++ b/src/core/ext/transport/chttp2/transport/writing.cc
@@ -322,7 +322,7 @@ class DataSendContext {
GPR_MIN(stream_remote_window(), t_->flow_control->remote_window()));
}
- bool AnyOutgoing() const { return max_outgoing() != 0; }
+ bool AnyOutgoing() const { return max_outgoing() > 0; }
void FlushCompressedBytes() {
uint32_t send_bytes =