shamblett / mqtt5_client

A server and browser based MQTT 5 client for dart
Other
50 stars 26 forks source link

Ensure that the whole message is available #36

Closed amarghosh closed 1 year ago

amarghosh commented 1 year ago

If the client receives a partial message, createFrom will throw an exception which will cause the stream to be cleared after the try catch, which will result in losing the data. More importantly, as we have already read the header bytes from the stream, the position will be non-zero which will cause clear to throw StateError.

shamblett commented 1 year ago

Yes thanks for the patch, package updated and re published at version 3.3.3

amarghosh commented 1 year ago

Thanks, that was fast !!