add proxy handler "has" for "http2.Http2ServerResponse.socket" and "http2.Http2ServerRequest.socket"#35197
Closed
masx200 wants to merge 17 commits intonodejs:masterfrom
masx200:patch-3
Closed
add proxy handler "has" for "http2.Http2ServerResponse.socket" and "http2.Http2ServerRequest.socket"#35197masx200 wants to merge 17 commits intonodejs:masterfrom masx200:patch-3
masx200 wants to merge 17 commits intonodejs:masterfrom
masx200:patch-3
Conversation
Collaborator
|
Review requested:
|
mcollina
requested changes
Sep 14, 2020
Member
mcollina
left a comment
There was a problem hiding this comment.
Can you please add a unit test?
Contributor
Author
|
Ok, testing is in progress |
Contributor
Author
|
@codebytere @Trott @schamberg97 @addaleax Request review |
Contributor
|
Can you fix the lint-js errors? it will make the review easier. |
Member
I've fixed all the lint errors in a pair of fixup commits. @rickyes PTAL |
Trott
previously approved these changes
Sep 19, 2020
LGTM but I'm going to defer to others on whether this is expected/idiomatic
Trott
approved these changes
Sep 19, 2020
Member
Trott
left a comment
There was a problem hiding this comment.
Of course this is expected/idiomatic.
Trott
reviewed
Sep 19, 2020
| const proxySocketHandler = { | ||
| has(stream, prop) { | ||
| const ref = stream.session !== undefined ? stream.session[kSocket] : stream; | ||
| return (prop in stream) || (prop in ref); |
Member
There was a problem hiding this comment.
Optional suggestion: The test file only covers one of these conditions, right? Does it make sense to add a test case so that both are covered?
Collaborator
aduh95
pushed a commit
that referenced
this pull request
Nov 9, 2020
PR-URL: #35197 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Contributor
|
Landed in 0d2e198 |
danielleadams
pushed a commit
that referenced
this pull request
Nov 9, 2020
PR-URL: #35197 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Merged
BethGriggs
pushed a commit
that referenced
this pull request
Dec 9, 2020
PR-URL: #35197 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
BethGriggs
pushed a commit
that referenced
this pull request
Dec 10, 2020
PR-URL: #35197 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Merged
BethGriggs
pushed a commit
that referenced
this pull request
Dec 15, 2020
PR-URL: #35197 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesadd proxy handler "has" for "http2.Http2ServerResponse.socket" and "http2.Http2ServerRequest.socket".
Usually check whether the connection is a secure connection using the following judgment method: