Skip to content

feat: trickle WHIP/WHEP candidates, take ICE servers from Link, restart ICE - #469

Merged
devopvoid merged 3 commits into
mainfrom
feat/whip-whep-trickle-ice
Oct 28, 2026
Merged

devopvoid merged 3 commits into
mainfrom
feat/whip-whep-trickle-ice

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • The offer goes out at once, without candidates. Once it is answered, the peer gathers with the STUN and TURN servers the endpoint names in Link: rel="ice-server" headers (RFC 9725 4.6), unless iceServer(...) names its own, and sends the candidates to the session by PATCH as application/trickle-ice-sdpfrag, with the ETag as If-Match (4.3.2). A session that takes no such PATCH (405, 415, 422, 501) gets no more.
  • ICE restarts by PATCH with If-Match: * (4.3.3): by itself when the connection fails or stays disconnected for two seconds, up to three in a row, and through the new session.restartIce(). A refused restart rolls the new offer back; the ICE session before goes on.
  • If-Match carries the RFC 9110 wildcard *; the examples of RFC 9725 and the WHEP draft show it quoted.
  • Sessions that answered a WHEP counter-offer take no ICE restarts.
  • The test endpoint serves each connection on a thread of its own.

RFC 9725 asks for HTTPS. Endpoints, the sessions they name and redirect
targets may now use plain http only on this machine: localhost, an
address in 127.0.0.0/8 or ::1. Names are not resolved, since one could
point elsewhere later.
…rt ICE

The offer now goes out at once. Once it is answered, the peer gathers
its candidates with the STUN and TURN servers the endpoint names in Link
headers, and sends them to the session by PATCH (RFC 9725 4.3.2, 4.6).
The session restarts ICE by PATCH with If-Match * when the connection
fails or stays disconnected, and by restartIce(). The test endpoint
serves each connection on a thread of its own.
@devopvoid
devopvoid merged commit 8f509ca into main Oct 28, 2026
25 checks passed
@devopvoid
devopvoid deleted the feat/whip-whep-trickle-ice branch October 28, 2026 17:35
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