Skip to content

listener: hot updates of send_x_real_ip and elide_x_real_ip are not recorded in the main state #1688

Closed

Description

@FlorentinDUBOIS

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

  1. added 3 commits that reference this issue on Sep 29, 2026
    1f5342c
    67d1f36
    bd694f5
  2. added a commit that references this issue on Sep 29, 2026
    9e55ad6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions