Skip to content

fix: complete WHEP ICE restart support and harden HTTP sessions - #471

Merged
devopvoid merged 2 commits into
mainfrom
whep-counter-offer-ice-restart
Oct 28, 2026
Merged

devopvoid merged 2 commits into
mainfrom
whep-counter-offer-ice-restart

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

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) and gathering(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.

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.
@devopvoid
devopvoid merged commit ef79e76 into main Oct 28, 2026
25 checks passed
@devopvoid
devopvoid deleted the whep-counter-offer-ice-restart branch October 28, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant