feat: clean up local_actors/outbound tables when senders exit

The endpoint now links to each local actor when it is first assigned an
outbound wire ID, trapping the exit to remove stale entries from the
outbound and local_actors tables.

To preserve spawn_link semantics, the endpoint stores the spawner's
instance_id() at init time. Trapped exits from the spawner are always
re-propagated regardless of whether the spawner also appears as an outbound
sender.
This commit is contained in:
CJ van den Berg 2026-03-12 19:00:51 +01:00
parent 916ecfa9dd
commit 077d47f8b2
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 29 additions and 1 deletions

View file

@ -37,6 +37,7 @@ const TestActor = struct {
endpoint.Args{
.allocator = args.allocator,
.argv = argv,
.spawner = thespian.self_pid().ref(),
},
endpoint.start,
"endpoint",