1. 09 Feb, 2015 3 commits
    • Tatsuhiro Tsujikawa's avatar
    • Tatsuhiro Tsujikawa's avatar
      Fix compile error and memory leak · 6b28e033
      Tatsuhiro Tsujikawa authored
      6b28e033
    • Tatsuhiro Tsujikawa's avatar
      Fix bug that client may send PROTOCOL_ERROR upon canceled push stream · eec8870a
      Tatsuhiro Tsujikawa authored
      Previously we treat stream in NGHTTP2_STREAM_RESERVED state specially,
      that is we don't increment or decrement streams counts if stream is in
      that state.  Because of this, we don't change the stream state to
      NGHTTP2_STREAM_CLOSING if stream is in NGHTTP2_STREAM_RESERVED.  But
      it turns out that it causes a problem.  If client canceled pushed
      stream before push response HEADERS, stream is still in
      NGHTTP2_STREAM_RESERVED state.  If push response HEADERS arrived in
      this state, library happily accepts it and passed to application.
      
      With this commit, this bug was corrected.  We now change stream state
      to NGHTTP2_STREAM_CLOSING even if it was in NGHTTP2_STREAM_RESERVED
      state.  We now use NGHTTP2_STREAM_FLAG_PUSH to determine whether we
      have to increase/decrase stream count.
      eec8870a
  2. 08 Feb, 2015 19 commits
  3. 07 Feb, 2015 1 commit
  4. 06 Feb, 2015 7 commits
  5. 05 Feb, 2015 10 commits