Skip to content

Commit

Permalink
use a sane timeout for iso-tp socket (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
noradtux authored Feb 18, 2020
1 parent 1fafb09 commit 24be750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dongles/SocketCAN.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def sendCommandEx_ISOTP(self, cmd, cantx, canrx):
sock.setsockopt(SOL_CAN_ISOTP, CAN_ISOTP_RECV_FC, self.sock_opt_isotp_fc)

sock.bind((self.config['port'], canrx, cantx))
sock.settimeout(5)
sock.settimeout(0.2)

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

0 comments on commit 24be750

Please sign in to comment.