Revert "useless"

This reverts commit 28f0bb9e97.
pull/32336/head
Shane Smiskol 1 year ago
parent 28f0bb9e97
commit 5aeabb8b29
  1. 7
      selfdrive/athena/athenad.py

@ -467,13 +467,6 @@ def startLocalProxy(global_end_event: threading.Event, remote_ws_uri: str, local
cookie="jwt=" + identity_token,
enable_multithread=True)
onroad = True
sock = ws.sock
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)
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 7 if onroad else 10)
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 2 if onroad else 3)
ssock, csock = socket.socketpair()
local_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
local_sock.connect(('127.0.0.1', local_port))

Loading…
Cancel
Save