Closed akshay-tech-prescient closed 9 months ago
It is not a known issue. I run a script that publishes a message once per minute and runs for months. You need to do the usual logs on both ends, tcdpump, ktrace/ktruss or equivalent, etc. Also put in a delay and see if that changes things. (I'm not sure of the right venue for getting help on this, but issues doesn't seem right to me.)
It is not a known issue. I run a script that publishes a message once per minute and runs for months. You need to do the usual logs on both ends, tcdpump, ktrace/ktruss or equivalent, etc. Also put in a delay and see if that changes things. (I'm not sure of the right venue for getting help on this, but issues doesn't seem right to me.)
Thanks for the reply. I was able to get the implementation working correctly by making a change in mosquitto configuration. So, this is indeed not an issue as you rightly pointed. Hence, closing this.
I tried implementing TLS/SSL based publisher-subscriber implementation for Mosquitto (using paho-mqtt) but was facing connection issues in the implementation.
After running publisher script multiple times I observed that first n messages out of 10 (generally saw 1<=n<=5) get successfully published after which the connection gets lost and rest of the messages fail to publish.
When running subsciber script, I was getting Connection refused - not authorised according to docs (since I was getting rc=5 in
on_connect(...)
)Publisher script:
Sample Output on Publisher script run:
Subscriber script:
Output on Subscriber script run:
Is this a (known) issue in paho-mqtt? If not, I request you to please help me in debugging this TLS/SSL based pub-sub implementation. Thanks in advance for any advice or help.