Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Disconnect message delayed

Rajeev Kumar <rajeev_ku@xxxxxxx> wrote:
> Hi,
> 
> I am using mosquitto 1.4.8 as mqtt broker and paho client
> (default script) to initiate connection from remote to queuing
> purpose. I am removing network cable of remote server (from
> where connection initiated), in LWT, keepalive time is - 20
> sec, but at broker, disconnect message is delivered a bit
> delay.

At most 1.5 times the keepalive time. See spec 3.1.2.10

http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718030

> 
> Is there any way to configure wait time at the broker end only
> so that it won't take long time to trigger disconnect time.

If you can find _any_ method of knowing that a cable has been
pulled, write it up and be famous. This is not a new problem :)

Cheers,
Karl P

Attachment: signature.asc
Description: OpenPGP Digital Signature


Back to the top