Fixed Tunnel Collapse Issues Every 45s

This commit is contained in:
2025-12-06 04:58:10 -07:00
parent d522515c04
commit 737bf1faef
5 changed files with 133 additions and 13 deletions

View File

@@ -2957,7 +2957,8 @@ async def connect_error(data):
@sio.event
async def disconnect():
print("[WebSocket] Disconnected from Borealis server.")
await stop_all_roles()
# Do not tear down roles/tunnels on control-plane drop; idle/grace timers inside roles handle cleanup.
_log_agent('SocketIO disconnect observed; leaving roles/tunnels running to survive transient drops.', fname='agent.log')
CONFIG.data['regions'].clear()
CONFIG._write()