Skip to content

Commit 24be750

Browse files
authored
use a sane timeout for iso-tp socket (#61)
1 parent 1fafb09 commit 24be750

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dongles/SocketCAN.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def sendCommandEx_ISOTP(self, cmd, cantx, canrx):
177177
sock.setsockopt(SOL_CAN_ISOTP, CAN_ISOTP_RECV_FC, self.sock_opt_isotp_fc)
178178

179179
sock.bind((self.config['port'], canrx, cantx))
180-
sock.settimeout(5)
180+
sock.settimeout(0.2)
181181

182182
if self.log.isEnabledFor(logging.DEBUG):
183183
self.log.debug("canrx(%s) cantx(%s) cmd(%s)",hex(canrx),hex(cantx),cmd.hex())

0 commit comments

Comments
 (0)