Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Question about MessageHandler (called when a new message is received) GO Paho mqtt

 HI,

I have a question regarding the below from Go Paho mqtt README.
How long (in Seconds) the MessageHandler can do processing of message without causing the issue? Can you please guide me on this ?

=====
A MessageHandler (called when a new message is received) must not block (unless ClientOptions.SetOrderMatters(false) set). If you wish to perform a long-running task, or publish a message, then please use a go routine (blocking in the handler is a common cause of unexpected pingresp not received, disconnecting errors).
====


Thanks
Danny

Back to the top