mqtt connect by domain, while lost dns service messeage #3117
-
Hi, I have an mqtt client that login to EMQX by token. During the test, the token expiration time was set to 3 minutes. After the token expired, the ack hour was used to determine and the token was updated to log in to EMQX again. However, after several hours, it was found that when the mqtt connection requested domain name interpretation from the DNS server, No more data is returned. After verification, a UDP packet has been sent to the DNS resolution service, but no reply has been received yet. After restarting the software, requests to the DNS resolution service can be initiated again. May I ask what aspects might cause this situation? The solution I came up with is to use dns buffering, but I don't seem to see such a module in mongoose. Could you please tell me how to enable it |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Mongoose does not handle nor cares about nor knows about tokens. MQTT handling is standard. Anything outside of that is your responsibility. The DNS functions do work and should keep working with no expiration nor usage time limits; anything related is a problem on your implementation. DNS requests are performed when you call a function that requires resolving a name, Mongoose is embedded-oriented and does not do buffering. Please see our documentation, and follow the guidelines in our tutorials. Please sniff your network (using Wireshark, for example) and observe the traffic. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Mongoose does not handle nor cares about nor knows about tokens. MQTT handling is standard. Anything outside of that is your responsibility. The DNS functions do work and should keep working with no expiration nor usage time limits; anything related is a problem on your implementation. DNS requests are performed when you call a function that requires resolving a name, Mongoose is embedded-oriented and does not do buffering.
Please see our documentation, and follow the guidelines in our tutorials.
Please sniff your network (using Wireshark, for example) and observe the traffic.
If, after your network inspection, you find an actual issue, feel free to open an issue, fill the issue template,…