nquic_server_sup (nquic v1.0.0)

View Source

Per-partition connection supervisor (simple_one_for_one).

One instance per scheduler is started under nquic_partitions_sup. Connections are routed to a partition by hashing the DCID, distributing supervision load across schedulers. Each partition publishes its pid to the listener's dispatch table on init so nquic_dispatch:start_conn_child/3 can find it without going through a republish step on partition restart.

Summary

Functions

Start one partition supervisor with its dispatch handle and 1-based index.

Functions

init/1

start_link(Dispatch, Idx)

-spec start_link(nquic_dispatch:t(), pos_integer()) -> {ok, pid()} | ignore | {error, term()}.

Start one partition supervisor with its dispatch handle and 1-based index.