mirror of
https://github.com/openziti/ziti.git
synced 2026-10-24 04:32:31 +00:00
a4285af743
- tracks the link listener set owed to each controller in the link registry, marked on a listener change and after each reconnect - sends the listener set from the registry loop with wait-for-wire once the controller's reconnect link announcement is written, retrying every tick until the write succeeds, replacing the fire-and-forget send to controllers connected at the time of the change - fences listener completions with the reconnect generation so a send that reached an earlier connection does not count for a later one - keeps sync state for controllers absent from a controller snapshot while they still owe the listener set - stamps the listener set sent to controllers with the config generation read in the same snapshot, matching the hello - makes the controller skip the peer fan-out for an UpdateLinkListeners message whose set matches the one it replaced, still recording the message generation - makes Router.SetLinkListeners return the set it held, read under the same lock as the update