Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] (no subject)

Hi Johan,

Please check out section 3.1.2.10 of the MQTT specification: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718030

The important points are:
  "It is the responsibility of the Client to ensure that the interval between Control Packets being sent does not exceed the Keep Alive value. In the absence of sending any other Control Packets, the Client MUST send a PINGREQ Packet "

 "If the Keep Alive value is non-zero and the Server does not receive a Control Packet from the Client within one and a half times the Keep Alive time period, it MUST disconnect the Network Connection to the Client as if the network had failed "

 "If a Client does not receive a PINGRESP Packet within a reasonable amount of time after it has sent a PINGREQ, it SHOULD close the Network Connection to the Server. "


--
Regards,
Mike Tran




From:        Johan de Vries <devries@xxxxxxxxx>
To:        mosquitto-dev@xxxxxxxxxxx
Date:        07/13/2016 08:50 AM
Subject:        [mosquitto-dev] (no subject)
Sent by:        mosquitto-dev-bounces@xxxxxxxxxxx




Hello,


Am I correct in thinking the maximum time for a connection break to be noticed is 2.5 * keepalive? That is, if the connection breaks right after a PINGRESP, it'll wait keepalive seconds to send out a new PINGREQ, and it'll allow for the server keepalive * 1.5 seconds to send its PINGRESP?


Sincerly,
 
Johan de Vries
 
Wivion bv
Vierlingsbeekseweg 52A | NL-5825 AX  Overloon

www.wivion.nl_______________________________________________
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