Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] [Looking for help] send payloads of more than 10 MB

Greetings! I'm new to eclipse mosquitto. I'm using libmosquitto to send payloads of more than 10 MB, and I have encountered with some problems. I set message_size_limit to 0 in the .conf file, and I test pub/sub with payloads from around 100 Bytes to 10 MB. My test runs OK for payload of less than several MB. However, when I test with payload of 11.7 MB, it seems that the subscriber cannot receive anything from broker. My test class is inherited from  mosqpp::mosquittopp. I use NULL client id while connecting to the broker, and keepalive is set to 60s. The outcoming is as follows: 
  1.  Broker received PUBLISH from pub with QoS 1, and PUBACK from broker is sent back to pub;
  2.  Broker sent PUBLISH to sub (QoS 1), however on_message() callback in sub was never triggered, and PUBACK from sub to broker was never received;
  3.  After one minite, broker found sub closed its commection, and then sub reconnected to broker.
I've noticed that mosquitto imposes a maximum payload size of about 268 MB.  Is there anything I need to check up in my code? Thanks a lot for your attention and kindly help! All my best wishes!

David  


Back to the top