mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Don't send WINDOW_UPDATE with 0 increment
This commit is contained in:
@@ -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,
|
int nghttp2_should_send_window_update(int32_t local_window_size,
|
||||||
int32_t recv_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) {
|
const char *nghttp2_strerror(int error_code) {
|
||||||
|
|||||||
Reference in New Issue
Block a user