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:
parent
b74975d2eb
commit
446667892c
4 changed files with 29 additions and 1 deletions
|
|
@ -53,6 +53,7 @@ const TestActor = struct {
|
|||
endpoint.Args{
|
||||
.allocator = args.allocator,
|
||||
.argv = argv,
|
||||
.spawner = thespian.self_pid().ref(),
|
||||
},
|
||||
endpoint.start,
|
||||
"endpoint",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue