Repository navigation
fix: complete WHEP ICE restart support and harden HTTP sessions - #471
Merged
Merged
Conversation
Attach counter-offer sessions to ICE management and preserve the answerer role and rejected media during restarts. Keep the existing session when a restart is refused and document the supported behavior.
Replace remote candidates on every ICE restart and report current-generation PATCH failures while ignoring obsolete responses. Add initial complete gathering and authenticated TURN configuration without changing the meaning of existing URL lists. Validate session locations and SDP response media types, and document the new options and compatibility requirements.
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.
WHEP sessions established through a server counter-offer could not restart ICE. They now support manual and automatic restarts while preserving the answerer role and rejected media; a refused restart leaves the existing session usable.
ICE restart responses replace the entire remote candidate set, including an empty set. Candidate PATCH failures for the current generation are reported, while responses to superseded generations are ignored. Session creation now requires a 201 response with a nonempty Location and an SDP Content-Type; known resources are still deleted when a response is unusable.
Both builders add
turnServer(url, username, password)andgathering(Gathering.COMPLETE). Complete gathering waits up to three seconds before the initial POST; late candidates and subsequent restarts can still use PATCH. STUN/TURN servers must be configured locally for that initial gathering. The guide, example, and regression coverage reflect these behaviors. All 78 HTTP/session/ICE tests pass.