This repository has been archived by the owner on Jul 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
http2: add test-http2-date-header.js #94
Open
robertkowalski
wants to merge
61
commits into
nodejs:master
Choose a base branch
from
robertkowalski:test-http2-date-header
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
http2: add test-http2-date-header.js #94
robertkowalski
wants to merge
61
commits into
nodejs:master
from
robertkowalski:test-http2-date-header
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
thanks for your feedback. i found another issue before i am ready to rebase and i am ready for the final review: #99 |
@robertkowalski any update on this one? |
robertkowalski
force-pushed
the
test-http2-date-header
branch
2 times, most recently
from
May 15, 2017 21:20
8a63c8e
to
c6f37ae
Compare
thanks for your help and the friendly nudge @mcollina all is ready now :) |
PR-URL: nodejs#3 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Allows TLS renegotiation to be disabled per `TLSSocket` instance. Per HTTP/2, TLS renegotiation is forbidden after the initial connection prefix is exchanged.
Squashed rollup of all the progress to this point
PR-URL: nodejs#58 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
PR-URL: nodejs#65 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Just reading through the code and noticed that the stream event can take headers and flags. Just adding them for readability and asserting the values in the headers and flags. PR-URL: nodejs#71 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: nodejs#78 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#64 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#64 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#83 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Currently when compiling the following error is displayed: In file included from /out/Release/obj/gen/node_javascript.cc:6: ../src/env-inl.h:201:7: warning: field 'fs_stats_field_array_' will be initialized after field 'http2_socket_buffer_' [-Wreorder] fs_stats_field_array_(nullptr), ^ In file included from /out/Debug/obj/gen/node_javascript.cc:6: ../src/env-inl.h:201:7: warning: field 'fs_stats_field_array_' will be initialized after field 'http2_socket_buffer_' [-Wreorder] fs_stats_field_array_(nullptr), ^ 1 warning generated. This commit changes the order so that the members appear in the same order in the initializer list. PR-URL: nodejs#85 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This might be an incorrect change but the naming looks to be a little different for these files and wanted to bring it up. Feel free to close if this is indeed correct. PR-URL: nodejs#74 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
These are forbidden by HTTP/2. PR-URL: nodejs#128 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
PR-URL: nodejs#129 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
PR-URL: nodejs#120 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Support the socket/connection getter like require('http') does. PR-URL: nodejs#130 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Support the upgrade path from https to http2. PR-URL: nodejs#125 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
* rename functions in docs * add warning against using socket directly * document paddingStrategy / selectPadding * fill in missing details and examples PR-URL: nodejs#132 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
PR-URL: nodejs#134 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Fixes: nodejs#135 PR-URL: nodejs#137 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This will need to be rebased :-) |
* 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>
Using `./configure --debug-http2` will enable verbose debug statements from node.js, Using `./configure --debug-nghttp2` will enable verbose debug statements from nghttp2. The two can be used together PR-URL: nodejs#138 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
robertkowalski
force-pushed
the
test-http2-date-header
branch
from
June 1, 2017 23:40
c6f37ae
to
2d62725
Compare
fixed, but it seems the tests of other http2 functionality are red right now?
|
Yeah, will need my current PR to land. |
* Follow the model of the existing http code and pass the headers in to js as an array. Building the array on the native side then converting it to an object on the js side is generally faster than building the object on the native side. This also allows us to eliminate some duplicated checks. * Fill in additional doc details * Work on timeouts PR-URL: nodejs#148 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
It should work now after a rebase. |
Emit `unknownProtocol` event or silently destroy the socket PR-URL: nodejs#144 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
sorry, still doesn't work:
|
Interesting... the only failure I'm getting is the socketHangUp which is fixed by my other PR. What platform are you on? |
robertkowalski
force-pushed
the
test-http2-date-header
branch
from
June 7, 2017 08:47
2d62725
to
8faa0d1
Compare
@mcollina ... can you test to see if you see the same issues @robertkowalski is getting? |
I'm getting:
EDIT: on |
jasnell
force-pushed
the
master
branch
2 times, most recently
from
July 14, 2017 19:01
b271202
to
734ad72
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is porting the http1 test https://github.com/nodejs/http2/blob/98e54b0bd4854bdb3e2949d1b6b20d6777fb7cde/test/parallel/test-http-date-header.js to http2.
I found several issues (see comments in test):
[ ]
req.url
is undefined, due to missing accessor for url[ ]
req.headers
is undefined[ ]
req.getHeader('date')
crashes with:For the header issues, it seems
stream[kHeaders]
is returningundefined
.Stacktrace:
It seems
stream[kHeaders]
is returningundefined
Code for
req.headers
andreq.getHeader
, note the use ofstream[kHeaders]
:So far I haven't found out why exactly
stream[kHeaders]
does not return the right value and need help with that.UPDATE: all issues fixed.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
http2