Draft
Add real ICE restart and stable stream/component teardown APIs to rice-proto#1
Conversation
Co-authored-by: bitflows <19825042+bitflows@users.noreply.github.com>
Co-authored-by: bitflows <19825042+bitflows@users.noreply.github.com>
Co-authored-by: bitflows <19825042+bitflows@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add real ICE restart API to rice-proto
Add real ICE restart and stable stream/component teardown APIs to rice-proto
Aug 21, 2026
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.
rice-protodid not have a real ICE restart path: callers could only recreate the agent, which drops selected pairs, gathered sockets, and live TURN state. This change adds restart semantics at stream and agent scope, plus the missing stream/component removal APIs, while keeping stream ids stable and preserving reusable local transport state.API surface
StreamMut::restart(&mut self, Credentials, Instant)for explicit per-stream restart.StreamMut::restart_with_random_credentials(Instant).Agent::restart(&mut self, Instant)to restart every stream with fresh credentials.Agent::remove_stream(&mut self, usize)andStreamMut::remove_component(&mut self, usize).Restart semantics
StreamStateand the checklist.set_controlling()remains the role control point.Checklist and agent internals
end_of_remote_candidates()restart FIXME by re-arming end-of-candidates across generations.Stable teardown / id reuse
Noneholes.Coverage
Example: