Changes
Started by upstream project gerrit-osmo-s1gw #621
Started 18 hr ago
Queued 11 min
Took 3.8 sec
on build4-deb12build-ansible
pfcp_peer: replace watchdog process with a timer
The watchdog process is spawned bare (no link/monitor), so if it
crashes its failure goes unnoticed, and if pfcp_peer restarts the
orphaned watchdog may fire a stale cast at the new process.
The watchdog process exists solely to send a delayed message to
pfcp_peer on timeout, and to be cancelled (by receiving
heartbeat_response) when the response arrives. That's exactly what
erlang:start_timer/3 does natively - no separate process needed.
Change-Id: I8d71ad8300feefb0aecbf690a825a2b4e9f1102c
The watchdog process is spawned bare (no link/monitor), so if it
crashes its failure goes unnoticed, and if pfcp_peer restarts the
orphaned watchdog may fire a stale cast at the new process.
The watchdog process exists solely to send a delayed message to
pfcp_peer on timeout, and to be cancelled (by receiving
heartbeat_response) when the response arrives. That's exactly what
erlang:start_timer/3 does natively - no separate process needed.
Change-Id: I8d71ad8300feefb0aecbf690a825a2b4e9f1102c