-
Notifications
You must be signed in to change notification settings - Fork 1k
BUGFIX?: self._header needs to be set to {} #599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,7 @@ def __init__(self, decoder, client=None): | |
| :param decoder: The decoder factory implementation to use | ||
| """ | ||
| self._buffer = b'' | ||
| self._header = {'uid': 0x00, 'len': 0, 'crc': '0000'} | ||
| self._header = {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like If framer instance receives incomplete frame with only first byte of some frame, |
||
| self._hsize = 0x01 | ||
| self._end = b'\x0d\x0a' | ||
| self._min_frame_size = 4 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some tests in test/test_framers.py have to be changed as well.