-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http2: don't expose the original socket through the socket proxy #22650
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Good work on your first contribution @szmarczak! CI: https://ci.nodejs.org/job/node-test-pull-request/16980/ (:heavy_check_mark:) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!! Edit: ugh... mobile UI...
Indeed, mobile UI doesn't look good :P |
Landed in d6a4343 |
Refs: nodejs#22486 PR-URL: nodejs#22650 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: nodejs#22486 PR-URL: nodejs#22650 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com>
These functions expose the original socket:
To avoid that, forward
session.socket.ref
tosession.ref
,session.socket.unref
tosession.unref
and throwERR_HTTP2_NO_SOCKET_MANIPULATION
when accessingsetEncoding
,setKeepAlive
orsetNoDelay
.Refs: #22486
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes