You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
listener: hot updates of send_x_real_ip and elide_x_real_ip are not recorded in the main state #1688
Found while working on #1685. Measured on main at 3ed6e8a61974b9b1847a9571948cfdea8fabb078.
UpdateHttpListenerConfig and UpdateHttpsListenerConfig carry elide_x_real_ip and send_x_real_ip (command.proto), and the workers apply them. But the main process's ConfigState::update_http_listener / update_https_listener (command/src/state.rs) never patch either field: git grep -n 'send_x_real_ip\|elide_x_real_ip' -- command/src/state.rs returns nothing.
Effect: after a hot update of either flag, workers run the new value while the main state keeps the old one. sozu listener list, SaveState, and the replay sent to a new worker on upgrade or restart therefore show or restore the old value — a hot change is silently reverted by the next worker upgrade.
Fix: patch both fields in the two update_*_listener functions like the other optional knobs, with state tests (patch applied, absent field preserves the existing value) and a replay test showing the new value survives generate_requests.
Activity
fix(state): record hot x_real_ip listener patches in the main state
fix(state): record hot x_real_ip listener patches in the main state
fix(state): record hot x_real_ip listener patches in the main state
fix(state): record hot x_real_ip listener patches in the main state (s…