Transport hardening: TCP dead-connection detection, reset spin bound, BLE leak/buffer cap #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the review.
obdcore/transport.py:TcpTransport.reset_input_buffercan spin forever if data keeps arriving -> bound iterations/time.TcpTransport.readswallows ALLOSErroras timeout, so a dead connection is undetectable -> distinguish real errors.BleTransportleaks the connected client + event-loop thread on connect timeout / close failure; notification buffer grows unbounded -> cleanup on timeout + cap buffer.