Repository navigation
feat: trickle WHIP/WHEP candidates, take ICE servers from Link, restart ICE - #469
Merged
Merged
Conversation
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.
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.
Link: rel="ice-server"headers (RFC 9725 4.6), unlessiceServer(...)names its own, and sends the candidates to the session by PATCH asapplication/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.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 newsession.restartIce(). A refused restart rolls the new offer back; the ICE session before goes on.If-Matchcarries the RFC 9110 wildcard*; the examples of RFC 9725 and the WHEP draft show it quoted.