-
Notifications
You must be signed in to change notification settings - Fork 158
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
Fix infinite loop in mqttsimple #406
Conversation
If the connection is closed, recv returns 0 and gets stuck in an infinite loop
Can one of the admins verify this patch? |
Thanks for contacting wolfSSL Support. The socket timeout should handle the condition you described:
wolfMQTT/examples/mqttsimple/mqttsimple.c Lines 224 to 244 in 6db6c74
Is the timeout not working with your setup? Could you tell us a bit about your project using wolfMQTT? Kind regards, |
Hi @embhorn,
I think that timeout is for an individual
But if the connection somehow gets closed, In our project, we are using wolfMQTT on an embedded linux system to connect to a local broker from multiple processes running on it. These processes use MQTT to communicate among each other. Regards, |
Great! I'll close this PR in favor of the fix in #407 |
If the connection is closed, recv returns 0 and gets stuck in an infinite loop.