mirror of
https://github.com/livekit/livekit.git
synced 2026-09-15 02:15:40 +00:00
- worker selection uses power-of-two-choices over live in-flight streams (InflightStreams / SpareStreams) instead of weighted-random over a reported load; the conn pick stays least-loaded. In-flight is observed locally so it is correct for adopted wires, and the reported Load hook is dropped from the endpoint path. - the front tags its own routing misses (X-Livekit-Endpoint-Miss) so a relay caller can distinguish them from a worker app's own 404/405 and retry past them across the remaining candidates. - a data-wire attach is bound to the connecting grant's api key, so a leaked attach token cannot bind a conn to another project's worker. - remove the dead scope-hook machinery (it only fed the removed bus resolve) and rename the request identity from "scope" to apiKey.