-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: convert Http2Settings to an AsyncWrap #17763
Conversation
ping @mcollina @nodejs/http2 |
6596369
to
2ca60ac
Compare
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
lib/internal/http2/core.js
Outdated
cb(err, this.localSettings, duration); | ||
} | ||
if (ack) | ||
this.emit('localSettings', this.localSettings); |
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.
I would at least so a debug if ack is null.
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.
Just reworked the entire function a bit to clean it up more and add the debug output.
2f4808b
to
880bbee
Compare
bc4a14a
to
788c847
Compare
CI is good |
PR-URL: #17763 Refs: #17746 Reviewed-By: Matteo Collina <[email protected]>
Landed in bbaea12 |
PR-URL: nodejs#17763 Refs: nodejs#17746 Reviewed-By: Matteo Collina <[email protected]>
Backport-PR-URL: #18050 PR-URL: #17763 Refs: #17746 Reviewed-By: Matteo Collina <[email protected]>
Backport-PR-URL: #18050 PR-URL: #17763 Refs: #17746 Reviewed-By: Matteo Collina <[email protected]>
Backport-PR-URL: nodejs#18050 PR-URL: nodejs#17763 Refs: nodejs#17746 Reviewed-By: Matteo Collina <[email protected]>
Backport-PR-URL: #18050 Backport-PR-URL: #20456 PR-URL: #17763 Refs: #17746 Reviewed-By: Matteo Collina <[email protected]>
Make
Http2Settings
anAsyncWrap
.Refs: #17746
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
http2