Xirsys.XTurn.Supervisor (xturn v2.0.0)

Copy Markdown View Source

OTP supervisor for the TURN server worker tree.

What problem this solves

A running TURN node needs many cooperating processes: allocation workers, authentication, relay ingress, client worker pool, plugins, certificate watchers, and one or more UDP/TCP (or DTLS/TLS) listeners per configured address. This supervisor starts them in a fixed order from the :listen list.

Internal note

Started by RootSupervisor; operators configure :listen and related env, not this module directly.

RFCs

  • RFC 5766 (TURN listeners and relay)
  • RFC 5780 (first UDP shard registers in ListenRegistry)

Summary

Functions

Returns a specification to start this module under a supervisor.

Restarts secure TURN/TLS listeners so they pick up renewed certificate files.

Starts the TURN supervisor with the given listen tuple list.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

restart_secure_listeners()

@spec restart_secure_listeners() :: :ok

Restarts secure TURN/TLS listeners so they pick up renewed certificate files.

start_link(listen)

Starts the TURN supervisor with the given listen tuple list.