mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 19:42:07 +08:00
IsoTpParallelQuery: extend timeout for every frame type (#29654)
* recv returns updated * bump panda * bump * bump old-commit-hash: a160f1a6241ef71a0816fd604052f49efe2e0dd5
This commit is contained in:
+1
-1
Submodule panda updated: cca252c8d4...0eb04fae67
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user