1

Closed

Long messages are being truncated

description

The MQTT spec indicates that the message payload max is 250MB. Incoming messages are being truncated, with subsquent messages with the same payload being truncated even further.
Closed Nov 22, 2013 at 7:42 AM by ppatierno

comments

paolopat wrote Jul 21, 2013 at 1:04 PM

Do you call Publish() method passing a "message" parameter with a large byte array allocated ? How many bytes ? Do you have a test example ?

Paolo.

kward wrote Jul 26, 2013 at 3:26 AM

Hi Paolo,

The discrepancy occurrs on:

client.MqttMsgPublishReceived

With a long message, for example the large blob of text found here:

http://www.karamasoft.com/ultimatespell/samples/longtext/longtext.aspx

paolopat wrote Jul 26, 2013 at 8:07 AM

Hi kward,
I have fixed the bug and I have uploaded new source.

Thank you very much for using my library.
Send me a feedback on bug resolution.
I have tested it with your large text and a large PDF file (about 7 MBs).

kward wrote Jul 28, 2013 at 3:52 AM

Hi Paolo,

Everything looks great now, thank you so much. I wanted to mention also that I have been using this library with Xamarin on iOS devices and it works perfectly.

Kurt

paolopat wrote Jul 28, 2013 at 10:45 AM

Thanks Kurt !!
I have twitted it !! ;-)

paolopat wrote Oct 30, 2013 at 2:09 PM

** Closed by paolopat 26/07/2013 01:08