Fix socketcand erroneously discarding frames by faisal-shah · Pull Request #1700 · hardbyte/python-can

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

The __receive_buffer is always truncated by
[chars_processed_successfully + 1:].  When a partial socketcand frame is
received, chars_processed_successfully is 0, and this results in 1
character being discarded. This will be the '<' character, and thus when
the rest of the frame is received, it will be treated as a bad frame,
and discarded.

zariiii9003