Split response fix #20

Open
wants to merge 6 commits into
from

Projects

None yet

2 participants

@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.

mdpye added some commits May 8, 2014
@mdpye mdpye Merge pull request #1 from DanielWaterworth/closable
Closable
4733bae
@mdpye mdpye Fix deprecation warnings in specs b2755c4
@mdpye mdpye Specify the problem
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
d1ac7bb
@mdpye mdpye Fix handling of responses which take bodies
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?`.
622e275
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment