Fix bug that data are not consumed for connection in race condition
When we know that stream is closed at time we read DATA frame header, we use NGHTTP2_IB_IGN_DATA, and consume data for connection if nghttp2_option_set_no_auto_window_update() is used. However, if stream is closed while we are in NGHTTP2_IB_READ_DATA, those bytes are not consumed for connection, nor notified to application via callback, so it eventually fills up connection window and connection will freeze. This commit fixes this issue by consuming these data for connection when stream is closed or does not exist.
Showing
Please register or sign in to comment