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

* recv returns updated

* bump panda

* bump

* bump
old-commit-hash: a160f1a6241ef71a0816fd604052f49efe2e0dd5
This commit is contained in:
Shane Smiskol
2023-08-26 07:00:46 -07:00
committed by GitHub
parent 8f0ab9a105
commit 2c86b69c92
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