Heartbeat Interval: Clients should send heartbeats every 20 seconds.Lease Timeout: Tunnels expire 60 seconds after the last heartbeat.Grace Period: This provides a 40-second grace period if a heartbeat is delayed.
When a tunnel is created, an initial lease is established
The client must send heartbeat requests at 20-second intervals
Each successful heartbeat extends the lease by 60 seconds from the current time
If no heartbeat is received within 60 seconds, the tunnel is marked as expired
Expired tunnels are automatically cleaned up by the system
If your client crashes or loses network connectivity, the tunnel will automatically expire after 60 seconds and be cleaned up, including DNS record deletion.