From ef3e2c7764c6177ca29ede8131c15a8b9fa7ed87 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 27 Sep 2015 00:22:33 +0900 Subject: [PATCH] Don't send WINDOW_UPDATE with 0 increment --- lib/nghttp2_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nghttp2_helper.c b/lib/nghttp2_helper.c index dcc70bd0..50b5c53e 100644 --- a/lib/nghttp2_helper.c +++ b/lib/nghttp2_helper.c @@ -215,7 +215,7 @@ int nghttp2_adjust_local_window_size(int32_t *local_window_size_ptr, int nghttp2_should_send_window_update(int32_t local_window_size, int32_t recv_window_size) { - return recv_window_size >= local_window_size / 2; + return recv_window_size > 0 && recv_window_size >= local_window_size / 2; } const char *nghttp2_strerror(int error_code) {