Repository navigation
net: preserve live settings across backend restarts - #953
Merged
techomancer merged 1 commit intoDec 6, 2026
Merged
Conversation
Retain explicit subnet, forwarding and PCAP-interface overrides on the shared control, then apply them when a renewed link creates its backend. Empty forwards and automatic interface selection remain explicit choices after notifications are consumed. Validation: a real Session restart restores a removed forward on upstream and retains its removal with this fix. Added-forward and configuration regressions also pass. All 175 networking tests pass with default features and all 186 pass with pcap enabled on Linux.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Live subnet, port-forward and PCAP-interface edits could be lost when a peripheral restarted its network backend. For example, removing a forward worked immediately, but resetting the guest could restore that forward from the original configuration.
Retain explicit settings on the shared control and apply them when a renewed link constructs its backend, after the old backend has consumed its update notifications. This includes removing all forwards and returning capture-interface selection to automatic. This follows #902, addressing persistence across restarts rather than rebinding during a live edit.
Validation on Linux:
cargo +nightly test -p iris --lib net::: all 175 tests pass.cargo +nightly test -p iris --lib --features pcap net::: all 186 tests pass.