IsoTpParallelQuery: extend timeout for every frame type (#29654)

* recv returns updated

* bump panda

* bump

* bump
This commit is contained in:
Shane Smiskol
2023-08-26 07:00:46 -07:00
committed by GitHub
parent 74a0a8f7b7
commit a160f1a624
2 changed files with 4 additions and 4 deletions
+1 -1
Submodule panda updated: cca252c8d4...0eb04fae67
+3 -3
View File
@@ -104,14 +104,14 @@ class IsoTpParallelQuery:
for tx_addr, msg in msgs.items():
try:
dat, rx_in_progress = msg.recv()
dat, updated = msg.recv()
except Exception:
cloudlog.exception(f"Error processing UDS response: {tx_addr}")
request_done[tx_addr] = True
continue
# Extend timeout for each consecutive ISO-TP frame to avoid timing out on long responses
if rx_in_progress:
# Extend timeout for each valid ISO-TP frame to avoid timing out on long responses
if updated:
addrs_responded.add(tx_addr)
response_timeouts[tx_addr] = time.monotonic() + timeout