nghttp2/tests
Tatsuhiro Tsujikawa 9cea986819 Strict outgoing idle stream detection
Previously, we use session->next_stream_id to detect that given stream
ID was idle or not.  But this was suboptimal, since it was updated
when stream ID was assigned, and it did not necessarily mean that it
actually has been sent to the peer.  Now we introduced
session->sent_stream_id, which only updated when HEADERS/PUSH_PROMISE
has sent.  Using sent_stream_id instead of next_stream_id tightens
idle stream detection, and misbehaved peer which sends frame with
stream ID that has not been generated.

This commit also overhauls test code which involves opening streams.
Now we have some wrapper functions for nghttp2_session_open_stream()
which also take care of updating next_stream_id and
last_recv_stream_id.  They are crucial for some tests.
2016-01-11 00:31:52 +09:00
..
testdata Replace HTTP/2.0 with HTTP/2 2014-03-30 19:26:37 +09:00
.gitignore Refactor .gitignore files 2015-03-29 18:40:37 +09:00
Makefile.am tests: fix broken linkage with --disable-static 2015-10-26 20:33:36 +01:00
end_to_end.py Move spdycat, spdyd and shrpx from examples to src 2012-09-10 21:39:51 +09:00
failmalloc.c More warning flags for --enable-werror 2015-09-23 16:49:45 +09:00
failmalloc_test.c More warning flags for --enable-werror 2015-09-23 16:49:45 +09:00
failmalloc_test.h tests: Add failmalloc HPACK test 2014-05-10 21:14:25 +09:00
main.c Create idle stream on client side 2015-12-25 00:10:37 +09:00
malloc_wrapper.c failmalloc: Use nghttp2_mem instead of using dlsym 2014-12-20 23:56:33 +09:00
malloc_wrapper.h failmalloc: Use nghttp2_mem instead of using dlsym 2014-12-20 23:56:33 +09:00
nghttp2_buf_test.c More warning flags for --enable-werror 2015-09-23 16:49:45 +09:00
nghttp2_buf_test.h Add test for GH-232 2015-05-15 01:00:09 +09:00
nghttp2_frame_test.c Fix warning with gcc 2015-09-23 18:26:02 +09:00
nghttp2_frame_test.h Remove altsvc 2014-12-07 23:11:54 +09:00
nghttp2_hd_test.c Switch to clang-format-3.6 2015-11-13 00:53:29 +09:00
nghttp2_hd_test.h Strictly check occurrence of dynamic table size update 2015-07-22 00:11:23 +09:00
nghttp2_helper_test.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_helper_test.h Replace HTTP/2.0 with HTTP/2 2014-03-30 19:26:37 +09:00
nghttp2_map_test.c More warning flags for --enable-werror 2015-09-23 16:49:45 +09:00
nghttp2_map_test.h Replace HTTP/2.0 with HTTP/2 2014-03-30 19:26:37 +09:00
nghttp2_npn_test.c Announce h2, final HTTP/2 ALPN identifier 2015-04-05 23:15:20 +09:00
nghttp2_npn_test.h Replace HTTP/2.0 with HTTP/2 2014-03-30 19:26:37 +09:00
nghttp2_pq_test.c Switch to clang-format-3.6 2015-11-13 00:53:29 +09:00
nghttp2_pq_test.h Remove nghttp2_pq_increase_key 2015-08-21 23:35:17 +09:00
nghttp2_queue_test.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_queue_test.h Replace HTTP/2.0 with HTTP/2 2014-03-30 19:26:37 +09:00
nghttp2_session_test.c Strict outgoing idle stream detection 2016-01-11 00:31:52 +09:00
nghttp2_session_test.h Create idle stream on client side 2015-12-25 00:10:37 +09:00
nghttp2_stream_test.c Replace HTTP/2.0 with HTTP/2 2014-03-30 19:26:37 +09:00
nghttp2_stream_test.h Replace HTTP/2.0 with HTTP/2 2014-03-30 19:26:37 +09:00
nghttp2_test_helper.c Strict outgoing idle stream detection 2016-01-11 00:31:52 +09:00
nghttp2_test_helper.h Strict outgoing idle stream detection 2016-01-11 00:31:52 +09:00