Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program hang if subscribed topic message packet size exceeds 200 bytes #23

Open
cornebester opened this issue Jun 28, 2020 · 2 comments

Comments

@cornebester
Copy link

Program hung on MQTT::Message &message = md.message;
payload at 184~ bytes + packet headers

If max packet size is increased in mbed_app.json e.g. "mbed-mqtt.max-packet-size": "1024" I can process my payload but only up to 1kB minus packet overhead

I'm using a forked/modified version of https://github.com/coisme/Mbed-to-AWS-IoT, with a mosquitto broker.

Need some error handling, around socket recv buffer overflow ?

@michalpasztamobica
Copy link
Contributor

Hi @cornebester , can you please try the three steps mentioned here, especially step 1?

@michalpasztamobica michalpasztamobica self-assigned this Jun 29, 2020
@cornebester
Copy link
Author

Hi Michal. Increasing the "mbed-mqtt.max-packet-size": to "1024" actually solved my problem. I did not have to modify the stack memory.

The concern is that should the payload approach the 1024 limit the issue will resurface. The issue is more about error handling when the size exceeds the default or custom set packet size limit. Program error/hang

@michalpasztamobica michalpasztamobica removed their assignment Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants