Skip to content
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

src,http2: cache invariant code motion #53879

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/node_http2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1652,11 +1652,12 @@ void Http2Session::HandleSettingsFrame(const nghttp2_frame* frame) {
int32_t settings_id = iv[i].settings_id;
if (settings_id >=
IDX_SETTINGS_COUNT) { // unsupported, additional settings
auto iv_value = iv[i].value;
for (size_t j = 0; j < numsettings; ++j) {
if ((remote_custom_settings_.entries[j].settings_id & 0xFFFF) ==
settings_id) {
remote_custom_settings_.entries[j].settings_id = settings_id;
remote_custom_settings_.entries[j].value = iv[i].value;
remote_custom_settings_.entries[j].value = iv_value;
break;
}
}
Expand Down
Loading