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: RE: [mosquitto-dev] mosquitto library stops working

Hi Bradley,

I just have my test device with mosquitto and my smartphone with MyMQTT connected to the broker. I call the mosquitto_new() with id=NULL, - so it should get a random id. Is there an easy way to find out all connected client ids?


Regards

Chris


 
-----Original message-----
From: Bradley, Dwayne <Dwayne.Bradley@xxxxxxxxxxxxxxx>
Sent: Tuesday 25th October 2016 15:16
To: 'General development discussions for the mosquitto project' <mosquitto-dev@xxxxxxxxxxx>
Subject: Re: [mosquitto-dev] 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

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top