nghttp2/lib
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
..
includes fix typos: heder->header alreay->already reponse->response 2016-01-05 22:19:33 +09:00
.gitignore Refactor .gitignore files 2015-03-29 18:40:37 +09:00
Makefile.am Use -fvisibility=hidden for internal functions 2015-10-23 00:08:15 +09:00
Makefile.msvc msvc build fixes and enchantments. 2015-07-04 23:12:55 +03:00
libnghttp2.pc.in libnghttp2: Remove dependency to zlib 2014-05-06 23:10:50 +09:00
nghttp2_buf.c More warning flags for --enable-werror 2015-09-23 16:49:45 +09:00
nghttp2_buf.h Fix warning with gcc 2015-09-23 18:26:02 +09:00
nghttp2_callbacks.c Add nghttp2_send_data_callback to send DATA payload without copying 2015-04-04 21:23:50 +09:00
nghttp2_callbacks.h Add nghttp2_send_data_callback to send DATA payload without copying 2015-04-04 21:23:50 +09:00
nghttp2_frame.c Silence warning with scan-build 2015-11-06 20:07:40 +09:00
nghttp2_frame.h Fix bug that headers in CONTINUATION were ignored after HEADERS with padding 2015-09-25 22:28:03 +09:00
nghttp2_hd.c Remove bogus debug log 2015-10-29 23:01:02 +09:00
nghttp2_hd.h Don't always expect dynamic table size update 2015-10-24 17:49:51 +09:00
nghttp2_hd_huffman.c Merge branch 'master' of https://github.com/alagoutte/nghttp2 into alagoutte-master 2015-10-04 22:02:47 +09:00
nghttp2_hd_huffman.h More warning flags for --enable-werror 2015-09-23 16:49:45 +09:00
nghttp2_hd_huffman_data.c Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_helper.c Return fatal error if flooding is detected to close session immediately 2015-09-30 22:19:03 +09:00
nghttp2_helper.h Switch to clang-format-3.6 2015-11-13 00:53:29 +09:00
nghttp2_http.c Workaround HTTP upgrade with HEAD request 2015-11-07 10:56:40 +09:00
nghttp2_http.h Rewrite static header table handling 2015-04-15 23:58:56 +09:00
nghttp2_int.h Return fatal error if flooding is detected to close session immediately 2015-09-30 22:19:03 +09:00
nghttp2_map.c More warning flags for --enable-werror 2015-09-23 16:49:45 +09:00
nghttp2_map.h More warning flags for --enable-werror 2015-09-23 16:49:45 +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 "static inline" fix for build with VS2013 2015-04-03 11:55:57 +02:00
nghttp2_npn.c Fix warning with gcc 2015-09-23 18:26:02 +09:00
nghttp2_npn.h Reformat lines with clang-format-3.5 2014-11-27 23:56:30 +09:00
nghttp2_option.c Limit the number of incoming reserved (remote) streams 2015-08-23 21:43:41 +09:00
nghttp2_option.h More warning flags for --enable-werror 2015-09-23 16:49:45 +09:00
nghttp2_outbound_item.c Fix compile error with --enable-werror 2015-04-25 02:23:01 +09:00
nghttp2_outbound_item.h Don't schedule response HEADERS with priority tree 2015-12-21 21:33:58 +09:00
nghttp2_pq.c Optimize nghttp2_pq swap 2015-12-15 22:07:51 +09:00
nghttp2_pq.h Remove nghttp2_pq_increase_key 2015-08-21 23:35:17 +09:00
nghttp2_priority_spec.c Add API to change stream priority without sending PRIORITY frame 2015-11-21 18:32:42 +09:00
nghttp2_priority_spec.h Add API to change stream priority without sending PRIORITY frame 2015-11-21 18:32:42 +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 Strict outgoing idle stream detection 2016-01-11 00:31:52 +09:00
nghttp2_session.h Strict outgoing idle stream detection 2016-01-11 00:31:52 +09:00
nghttp2_stream.c Fix compile error with gcc 2015-12-08 23:33:26 +09:00
nghttp2_stream.h Take into account remainder due to integer division when calculating cycle 2015-12-08 23:15:55 +09:00
nghttp2_submit.c Return error from nghttp2_submit_{headers,request} when self dependency is made 2015-12-25 21:37:18 +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