Connection is reset when receiving a payload that exceeds the max-packet-size limit? #856
-
Hi! We noticed that if a payload is received that exceeds the configured "max-packet-size", the whole connection is reset. Maybe it's due to our particular use-case, but with this behaviour our application would end up in a "re-connection loop" as long as the big payload is on the MQTT bus. Basically the steps would be:
Did we understand the behaviour correctly? Is there an option not to disconnect in case of a Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey,
as per protocol, it should disconnect! but if you don't want to disconnect, maybe just not configuring max-packet-size would solve your issue? |
Beta Was this translation helpful? Give feedback.
you can update the value using
set_max_packet_size
, but it looks like we will just use the default value you mentioned!Maybe we should let users specify
None
? for now, you can try to set it to some value large enough so your application won't crash?thanks!