Antoine Pitrou <[email protected]> added the comment:
Actually, there are two places where the internal buffer is trimmed from
consumed data:
self._readbuffer = self._readbuffer[self._offset:] + data
self._offset = 0
At this point, it seems self._crc_offset should also be reset to zero,
otherwise some data will be forgotten on the next read() call.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7467>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com