Skip to content

Commit

Permalink
src: cache invariant code motion
Browse files Browse the repository at this point in the history
PR-URL: #53879
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
  • Loading branch information
RafaelGSS authored and marco-ippolito committed Aug 19, 2024
1 parent acaf5dd commit 848c2d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node_http2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1650,11 +1650,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

0 comments on commit 848c2d5

Please sign in to comment.