smarkets / smk_python_sdk

Smarkets Python SDK
http://smarkets.github.com/
MIT License
18 stars 11 forks source link

BUGFIX: frame_decode_all could miss frames #12

Closed jcpetruzza closed 7 years ago

jcpetruzza commented 7 years ago

If frame_decode_all was passed bytes encoding more than one frame, in such a way that the one of the frames was shorter than the preceeding one, the function would stop decoding and that point and leave the rest as unparsed.

This meant that there would be messages that wouldn't be dispatched until further stuff was read from the wire.

The problem was due to a name clash between two variables. We add a regression test for this.