http2: multiple cleanups and s/streamClosed/close#17328
http2: multiple cleanups and s/streamClosed/close#17328jasnell wants to merge 7 commits intonodejs:masterfrom
Conversation
lib/internal/http2/core.js
Outdated
There was a problem hiding this comment.
Is it possible to add a test for this?
There was a problem hiding this comment.
There are already tests for it that have been flaky, this should fix those flaky tests. One of the existing ones could be modified to check that a secureConnect handler has been registered.
There was a problem hiding this comment.
@jasnell Can you point me to one? I volunteer to try and make it fail/pass consistently :)
There was a problem hiding this comment.
http2-create-client-secure-session is one, which should be fixed by this PR.
I've updated it to include the check for secureConnect
lib/internal/http2/compat.js
Outdated
There was a problem hiding this comment.
Can you remove this and the associated function? They should not be necessary.
lib/internal/http2/compat.js
Outdated
There was a problem hiding this comment.
Same as above.
Can you remove this and the associated function? They should not be necessary.
lib/internal/http2/core.js
Outdated
There was a problem hiding this comment.
Could this be a bit more descriptively named? (Similar to setupFn elsewhere in this code.)
sebdeckers
left a comment
There was a problem hiding this comment.
LGTM 👍 This event confused me many times. Thanks for clearing it up.
General improvements to test and verify that a secureConnect handler is present
2e5bcdb to
4b964e5
Compare
|
Landed in 0fb1e07...093a870 |
Includes multiple cleanups in core.js along with:
streamClosed/cc @nodejs/http2
Fixes: #15303
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
http2