From ef00478a2c87be3b6928e613a3fca538dcb3701f Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 21 Feb 2024 20:43:34 -0800 Subject: [PATCH] fix --- selfdrive/athena/athenad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/athena/athenad.py b/selfdrive/athena/athenad.py index d761d9b9e8..ca3a1bafbb 100755 --- a/selfdrive/athena/athenad.py +++ b/selfdrive/athena/athenad.py @@ -747,7 +747,7 @@ def ws_manage(ws: WebSocket, end_event: threading.Event) -> None: if sock is not None: # While not sending data, onroad, we can expect to time out in 7 + (7 * 2) = 21s - # While sending data, offroad, we can expect to time out in 30 + (10 * 3) = 60s + # offroad, we can expect to time out in 30 + (10 * 3) = 60s # FIXME: TCP_USER_TIMEOUT is effectively 2x for some reason (32s), so it's mostly unused sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_USER_TIMEOUT, 16000 if onroad else 0) sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 7 if onroad else 30)