oasis-tcs / mqtt

OASIS MQTT TC: Technical refinements of features
Other
4 stars 2 forks source link

MQTT-619 Do CONNACKS need to be associated to a particular CONNECT? #7

Closed icraggs closed 4 months ago

icraggs commented 6 months ago

https://issues.oasis-open.org/browse/MQTT-619

Because in MQTT-SN we don't have a network connection, and packets can get reordered or not delivered, it's possible that a CONNACK in response to a CONNECT is never received. Then the client will try another CONNECT. If the server or transport layer is slow, then the CONNACK received by the endpoint sending the CONNECT, could be in response to the first CONNECT.

This is a problem if the data in the second CONNECT is different from that in the first - the client and server will have a virtual connection to each other, but potentially with different session information at each end.

icraggs commented 6 months ago

Simon Johnson:

Added correlation Id to CONNECT, CONNACK, REGISTER, REGACK, PINGREQ, PINGRESP

icraggs commented 4 months ago

Done. Also now tracking in Jira again.