Skip to content

Add ICE candidate-pair acceptance min-wait parameters#89

Merged
boks1971 merged 1 commit into
livekit:masterfrom
sam-hark:feat/configurable-ice-acceptance-min-wait
Jun 8, 2026
Merged

Add ICE candidate-pair acceptance min-wait parameters#89
boks1971 merged 1 commit into
livekit:masterfrom
sam-hark:feat/configurable-ice-acceptance-min-wait

Conversation

@sam-hark

@sam-hark sam-hark commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Forwards pion's host/srflx/prflx/relay AcceptanceMinWait to the SettingEngine via rtc.* config, guarded by > 0 like the existing sctp_* params — unset/0 keeps pion's current defaults.

Lowering prflx_acceptance_min_wait removes a fixed ~1s connect delay for server-side SDK participants co-located with the SFU (no NAT): their first connectivity check can reach the server before their trickled host candidate, forming a peer-reflexive pair that can't be nominated until prflxAcceptanceMinWait (1s default). Repro'd with @livekit/rtc-node (~1100ms → ~82ms); the Go SDK trickles host-first and is unaffected.

@CLAassistant

CLAassistant commented Jun 4, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Forward pion's host/srflx/prflx/relay AcceptanceMinWait to the
SettingEngine via rtc.* config, guarded by >0 like the sctp_* params.
Unset/0 keeps pion's defaults.

Lowering prflx_acceptance_min_wait removes a fixed ~1s connect delay for
server-side SDKs co-located with the SFU (no NAT), whose connectivity
check can reach the server before their trickled host candidate.
@sam-hark
sam-hark force-pushed the feat/configurable-ice-acceptance-min-wait branch from 5e920a6 to 6876720 Compare June 4, 2026 19:53
@boks1971
boks1971 merged commit a3417d3 into livekit:master Jun 8, 2026
1 of 2 checks passed
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.

4 participants