third_party_nghttp2/lib
Tatsuhiro Tsujikawa eec8870ac1 Fix bug that client may send PROTOCOL_ERROR upon canceled push stream
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.
2015-02-09 22:23:20 +09:00
..
includes Refactor ALPN/NPN protocol selection and introduce NGHTTP2_PROTO_ALPN macro 2015-02-06 22:35:30 +09:00
libnghttp2.pc.in libnghttp2: Remove dependency to zlib 2014-05-06 23:10:50 +09:00
Makefile.am Remove AM_EXTRA_RECURSIVE_TARGETS since travis automake is too old 2015-01-21 02:07:16 +09:00
Makefile.msvc Move Makefile.msvc under lib 2014-09-24 00:44:45 +09:00
nghttp2_buf.c Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_buf.h Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_callbacks.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_callbacks.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_frame.c Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_frame.h Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_hd_huffman_data.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_hd_huffman.c Fix other shorten-64-to-32 casting error found by MSVC (64bits) 2015-01-10 15:17:31 +01:00
nghttp2_hd_huffman.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_hd.c Fix memory leak 2014-12-18 21:02:44 +09:00
nghttp2_hd.h Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_helper.c Suppress to send frames other than GOAWAY if NGHTTP2_GOAWAY_TERM_ON_SEND is set 2015-01-15 22:32:29 +09:00
nghttp2_helper.h Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_int.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_map.c Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_map.h Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_mem.c Remove return in void function 2015-01-09 20:56:37 +09:00
nghttp2_mem.h Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_net.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_npn.c Refactor ALPN/NPN protocol selection and introduce NGHTTP2_PROTO_ALPN macro 2015-02-06 22:35:30 +09:00
nghttp2_npn.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_option.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_option.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_outbound_item.c Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_outbound_item.h Add nghttp2_submit_shutdown_notice() to start graceful shutdown 2015-01-22 23:21:58 +09:00
nghttp2_pq.c Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_pq.h Support custom memory allocator 2014-12-08 00:55:55 +09:00
nghttp2_priority_spec.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_priority_spec.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_queue.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_queue.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_session.c Fix bug that client may send PROTOCOL_ERROR upon canceled push stream 2015-02-09 22:23:20 +09:00
nghttp2_session.h Fix bug that client may send PROTOCOL_ERROR upon canceled push stream 2015-02-09 22:23:20 +09:00
nghttp2_stream.c Fix bug that client may send PROTOCOL_ERROR upon canceled push stream 2015-02-09 22:23:20 +09:00
nghttp2_stream.h Fix bug that client may send PROTOCOL_ERROR upon canceled push stream 2015-02-09 22:23:20 +09:00
nghttp2_submit.c Add nghttp2_submit_shutdown_notice() to start graceful shutdown 2015-01-22 23:21:58 +09:00
nghttp2_submit.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_version.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00