mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

Wrong will recvice

Open mofywong opened this issue 7 years ago • 3 comments

Hello, I have a program in project. Simplified scene such as below: It has two client we call ca and cb, and connect to the same broker. the two client has all set its persistence will with topic v1/ca/sts and v1/cb/sts, and subscribe each othre topic。application running normal under normal circumstances, but it happen some probrem when i find in log. ca recive the cb's will but the on_disonnect function not been callback in ca. So ca always thinks it is online, the application run in error status. I don't know how this program can happen, and it's has appeared twice。 I use the mosquitto lib and mosquitto broker version are 1.5.3.

mofywong avatar Jul 02 '19 10:07 mofywong

Are you able to post some example code? It's very difficult to say what could be happening from your description I'm afraid.

ralight avatar Aug 01 '19 10:08 ralight

@ralight Sorry,I think It's a bug in my process that the on_message callback has been blocking, it's my wrong and I have resolve it. Thank you for your reply!

mofywong avatar Aug 30 '19 09:08 mofywong

Great, I'm glad you got it sorted.

ralight avatar Aug 30 '19 22:08 ralight