Skip to content

fix: detach closed peers from signaling and report stats per transport - #509

Merged
devopvoid merged 1 commit into
mainfrom
fix/signaling-detach-transport-stats
Nov 1, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/signaling-detach-transport-stats

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • Signaling.attach returns a Subscription that the peer closes when it closes, after its last send. A transport that outlives the peer no longer keeps it and the runtime reachable, and stays open for the next peer. A SignalingPair end takes a new peer once the previous one closed.
  • PeerStats.transports() lists each transport. Candidate type and RTT come from one transport, chosen by a documented rule, instead of whichever was read last.
  • PeerStats.recentPacketLoss() gives the loss since the previous sample.

Signaling.attach returns a Subscription that the peer closes on close, so a transport that outlives it no longer keeps it reachable. PeerStats lists each transport, takes candidate type and RTT from one chosen by a documented rule, and adds recentPacketLoss().
@devopvoid
devopvoid merged commit 8b4a15a into main Nov 1, 2026
25 checks passed
@devopvoid
devopvoid deleted the fix/signaling-detach-transport-stats branch November 1, 2026 12:45
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