Skip to content

v0.7.0-beta

Latest

Choose a tag to compare

@romanrublev romanrublev released this 10 Oct 16:20
· 2 commits to main since this release

Beta release. The pool now survives a stuck relay and a change of network.

A relay that stops accepting writes

A relay can wedge so that the write to it never returns. The obfuscation
conns serialise writes and ignore write deadlines, so one stuck write
blocked every writer on that worker: the uplink held a stolen datagram,
and the probe loop blocked mid-iteration, which silenced both the health
estimator and the zombie check. The worker sat "active", inflating the
pool while carrying nothing, until the whole pool closed.

Each writer now marks when its write started and a watchdog judges a write
in flight past a second, closing the conn to unwedge it. Measured on a
wedged relay: restarted after 1.1s, where before it never recovered.

A change of network, and waking from sleep

Every TURN allocation is bound to the source address it was made from, so
switching networks or waking a laptop kills all of them at once - but a UDP
write onto the gone path still succeeds locally, so nothing errored and
recovery waited on the 120s zombie timeout.

The pool now re-establishes on a handover, triggered by the default-route
monitor and by a sleep detector (a monotonic timer cannot see suspension,
the gap between its ticks can). Sessions rebuild off the backoff ladder,
spread by a short jitter, and no relay is cooled for it. Measured: the pool
back up in about half a second.

The handover count is reported through status and the tray.

Client-only: the exit server is unaffected and needs no update.

Install (macOS Apple Silicon)

brew update && brew upgrade romanrublev/turnrelay/turnrelay romanrublev/turnrelay/turnrelay-tray