-
Notifications
You must be signed in to change notification settings - Fork 79
Conversation
|
@sebdeckers can you add it to the test? also with an http2 request, so that we show the difference. |
@mikeal you had some good opinions on the design of this step of the API. What do you think? |
@mcollina I've created an option called Tests cover every combination of https/http2 clients against servers with/without ALPN fallback. Also explicitly reporting the |
fyi... needs a rebase :-) |
e05fd71
to
ffe36c0
Compare
@jasnell Nice, only took me a few minutes this time. Starting to get the hang of |
Nits and code issues aside, this implementation hinges on Con
Pro
See also: nodejs/node#2017 (comment) |
4df96e2
to
5efe1c4
Compare
I think overall this uses less of the internals compared to node-spdy and node-http2, so ok for me.
IMHO that causes most of the issues in those modules. This is a clean implementation so no.
I think we can just import from
Coupling is needed if we want to support both http1 and http2. |
294cd4d
to
05951ee
Compare
(Rebased again) |
Landed as 6232681 |
Support the upgrade path from https to http2. PR-URL: #125 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Support the upgrade path from https to http2. PR-URL: #125 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
My mistake, I force-pushed 5cc2b2a. |
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>
Support the upgrade path from https to http2. PR-URL: #125 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Support the upgrade path from https to http2. PR-URL: #125 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@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>
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>
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>
Fixes #122
Well then, this was a lot easier than I thought it would be. 😌
h2
orhttp/1.1
, as per IANA-registered protocol IDs.request
events on theHttp2SecureServer
instance. Analogous to thehttps
module.Note 1:
Some other tests are failing. Not sure if related to this patch.TIL--expose-internals
Note 2: Only doing fallback to https clients. Not for plaintext http since ALPN is inherently TLS-only. Should use the magic number to sniff plaintext http.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
http2