Skip to content

fix when recive multiple packets #11

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albertsal
Copy link

when the packets are split into several parts, you receive only the last packet.

1 .for example the first packet starts with "BEGIN LIST " and "vars" is filled, the callback is not called because the packet is truncated and does not end with "END LIST"
2. I receive the second packet, "vars" is initialized to {} (so I lose the data of the first packet), it is filled with the last data and when it gets to "END LIST" it executes the callback.
3. the callback returns only the last packet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant