Skip to content

Trickle offers, publicAddress() STUN lookup, drop stale Limits - #14

Merged
stasadance merged 1 commit into
mainfrom
fix/v1-limits
Nov 24, 2026
Merged

stasadance merged 1 commit into
mainfrom
fix/v1-limits

Conversation

@stasadance

@stasadance stasadance commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner
  • Trickle offers already work. The ICE-lite server learns the client's address from its connectivity checks, so an offer sent before gathering finishes (even one with zero candidates) connects. New test: offer with every a=candidate stripped. Docs and JSDoc no longer say "non-trickle".
  • server.publicAddress(stunServer, timeoutMs = 3000) sends a STUN Binding request from the shared UDP port and resolves with { ip, port }, the NAT's mapping, for accept(offer, ip, port). It retransmits at 250 ms and doubles, then rejects on timeout. The loop matches responses by txid and source. New test against a fake STUN server that drops the first request.
  • README/docs: removed the "Limits (v1)" lines.

Not done: immediate SACK on the server (for browser→server). I benched it against Chromium at 5% and 10% loss, 100 ms RTT, 2 seeds, and it made no difference. The server already SACKs at once when it sees a gap.

No version bump.

…op stale Limits

- An offer sent before ICE gathering finishes already works (ICE-lite learns the
  client's address from its checks). Test with an offer that has no candidates.
- Server.publicAddress(stunServer, timeoutMs): STUN Binding from the shared UDP
  port, resolves with the NAT's mapped { ip, port } for accept().
- README/docs: remove the Limits (v1) lines.
@stasadance
stasadance marked this pull request as ready for review November 24, 2026 04:16
@stasadance
stasadance merged commit feeac95 into main Nov 24, 2026
4 checks passed
@stasadance
stasadance deleted the fix/v1-limits branch November 24, 2026 04:17
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