cesanta / mongoose

Embedded Web Server
https://mongoose.ws
Other
11.16k stars 2.73k forks source link

mongoose sends invalid MQTT packets after bulk publish calls #2864

Closed dingo35 closed 3 months ago

dingo35 commented 3 months ago

I reworked my code to use internal esp-mqtt and this has no issues, so it makes me believe the problem is in the mongoose code. I tried increasing MG_IO_SIZE to 4096. and a lot of other things (see thread), but nothing seems to help.

Environment

scaprile commented 3 months ago

I'm sorry, I'm too lazy to go reading a thread for some other tool I don't use (with snapshots instead of capture files) to see if somehwere somehow that is related to us. When and if you have some clear indication of a problem with Mongoose and not with the rest of your system, please post the smallest piece of code that reproduces the issue, with a capture file, and we'll gladly take a look at it.

Please read https://mongoose.ws/documentation/#best-practices and follow our guidance. From the docs

NOTE: Since Mongoose's core is not protected against concurrent accesses, make sure that all mg_* API functions are called from the same thread or RTOS task.

Please see our documentation, and follow the guidelines in our tutorials.