Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] mosquitto library stops working

Title: mosquitto library stops working

Do all of your connections to the broker have a unique client id?

 

 

From: mosquitto-dev-bounces@xxxxxxxxxxx [mailto:mosquitto-dev-bounces@xxxxxxxxxxx] On Behalf Of Christoph Rotter
Sent: Monday, October 24, 2016 8:44 AM
To: mosquitto-dev@xxxxxxxxxxx
Subject: [mosquitto-dev] mosquitto library stops working

 



*** Exercise caution. This is an EXTERNAL email. DO NOT open attachments or click links from unknown senders or unexpected email. ***

Hi all,

 

I am using the mosquitto c sourcecode (1.4.10) in my raspberry project (Raspbian Jessy). In my current test setup, I have a condition, where mosquitto stops working.

 

In my test setup I’m calling the mosquitto_publish() function 5 times as fast as possible and then wait for 2 seconds (75 Bytes, qos 2, retain false, topic: "testtarget/status"). The broker is receiving the messages correctly. Normally this setup runs forever. Then I subscribe a topic (e.g. "testtarget/command"). I manually publish a message on this topic from another device. When the subscribed message reaches the testtarget while it is still publishing messages, mosquitto just stops working in the out direction. The target is not able to publish messages any more.

I attached the debug output from my code and the mosquitto library to this email. 

 

Any suggestions? Anything that I can imlement to make it safer?

 

Thanks and Regards,

Chris


Back to the top