msgpack/msgpack — pull request #94 by Wassasin (2011-12-27 21:34:56+00:00)
Title: csharp: fix bug, which is cause of FormatException in case of RawStrings longer than 64 bytes

Heisenbug: in case of a slow stream (network socket, for example), the buffer is read faster than it is written to. In case of strings longer than 64 bytes (buffer size on writing side), the remainder of the bytes is not received in time. C# streams may fill the buffer to the specified length, but may fill it with less bytes, as specified by the return-value of Stream.Read.

Fix waits for the entire buffer to be filled, instead of assuming that the stream fills the entire buffer at once.