vsergeev/u-msgpack-python

_read_except() throws InsufficientDataException for short reads

DisposaBoy opened this issue · 0 comments

When reading from files, the network, etc. there's no guarantee that read(n) returns n bytes so you need to keep calling read() until you get all the data.

I will send a PR with a test case and proposed fix.