Fix socketcand erroneously discarding frames by faisal-shah · Pull Request #1700 · hardbyte/python-can
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 666
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters