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 <[email protected]>
Reviewed-By: Paolo Insogna <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
  • Loading branch information
RafaelGSS authored and marco-ippolito committed Aug 19, 2024
1 parent ad43a6f commit 7e17ac4
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 7e17ac4

Please sign in to comment.