• Tatsuhiro Tsujikawa's avatar
    Fix bug that data are not consumed for connection in race condition · b5717cd2
    Tatsuhiro Tsujikawa authored
    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.
    b5717cd2
nghttp2_session_test.c 273 KB