mirror of
https://github.com/moparisthebest/spdylay
synced 2024-12-22 07:38:52 -05:00
Check window size is positive when bringing back deferred DATA frame
when WINDOW_UPDATE is received.
This commit is contained in:
parent
9b619e5dd7
commit
ef2bd10d94
@ -1952,7 +1952,8 @@ int spdylay_session_on_window_update_received(spdylay_session *session,
|
||||
return r;
|
||||
} else {
|
||||
stream->window_size += frame->window_update.delta_window_size;
|
||||
if(stream->deferred_data != NULL &&
|
||||
if(stream->window_size > 0 &&
|
||||
stream->deferred_data != NULL &&
|
||||
(stream->deferred_flags & SPDYLAY_DEFERRED_FLOW_CONTROL)) {
|
||||
int r;
|
||||
r = spdylay_pq_push(&session->ob_pq, stream->deferred_data);
|
||||
|
Loading…
Reference in New Issue
Block a user