Skip to content
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

Split response fix #20

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

mdpye
Copy link

@mdpye mdpye commented May 7, 2014

Did not handle case where packet boundaries split a body from its line terminator exactly. Line terminator not consumed, nor anything past it. For example:

OK 5\r\n12345
\r\nDELETED 10\r\n

Considerably simplified multi-packet reading and body-extraction logic.

danielwaterworth and others added 6 commits May 9, 2013 12:10
If one packet contains exactly the declared data size, but not the line
terminator chars, then they will not be consumed and will block
consumption of further commands
There was miscounting in the consuming of the bodies when the associated
line terminator did not turn up in the same delivery.

Removed the check on the return value of the `handle` methods. They
duplicate the check made in `handles?` and nothing is ever passed to
`handle` without first being tested in `handles?`.
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.

2 participants