Skip to content

Commit 1540129

Browse files
committed
http2: significant internal refactoring
* tighten up the Http2Stream/Http2Session lifecycle, destroy, and error handling. Some simplification, and more new tests * Eliminate queuing of internal callbacks. Queuing these to fire on the next event loop tick was throwing off timing. Now the js callbacks are called directly as they happen. This will require a bit more finesse on the javascript side (to ensure appropiate timing of destroy/shutdown actions) but that is handled from within the core api impl so users should not be affected. * fix debug output with nghttp2 PR-URL: nodejs#138 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 2a83a0e commit 1540129

32 files changed

Lines changed: 1604 additions & 1250 deletions

deps/nghttp2/nghttp2.gyp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
'lib/nghttp2_buf.h',
2525
'lib/nghttp2_callbacks.c',
2626
'lib/nghttp2_callbacks.h',
27+
'lib/nghttp2_debug.c',
28+
'lib/nghttp2_debug.h',
2729
'lib/nghttp2_frame.c',
2830
'lib/nghttp2_frame.h',
2931
'lib/nghttp2_hd.c',
3032
'lib/nghttp2_hd.h',
31-
'lib/nghttp2_hd_huffman_data.c',
3233
'lib/nghttp2_hd_huffman.c',
34+
'lib/nghttp2_hd_huffman_data.c',
3335
'lib/nghttp2_hd_huffman.h',
3436
'lib/nghttp2_helper.c',
3537
'lib/nghttp2_helper.h',

0 commit comments

Comments
 (0)