Uploaded image for project: 'OASIS Message Queuing Telemetry Transport (MQTT) TC'
  1. OASIS Message Queuing Telemetry Transport (MQTT) TC
  2. MQTT-6

What should a server do if it receives a connect packet with and incorrect protocol name?

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.1
    • Component/s: core
    • Labels:
      None
    • Proposal:
      Hide

      If the first data that the server receives is not an MQTT CONNECT packet, including the correct protocol name, then it MAY continue to process it
      as some other protocol, alternatively it MUST disconnect the TCP session without sending a CONNACK. The server MUST NOT continue to process a malformed initial packet in line with this specification.

      Non normative comment.
      A server can support multiple protocols by checking to see if the initial data it receives is a valid CONNECT packet or valid data for some other protocol such as an earlier version of the MQTT specification.

      Show
      If the first data that the server receives is not an MQTT CONNECT packet, including the correct protocol name, then it MAY continue to process it as some other protocol, alternatively it MUST disconnect the TCP session without sending a CONNACK. The server MUST NOT continue to process a malformed initial packet in line with this specification. Non normative comment. A server can support multiple protocols by checking to see if the initial data it receives is a valid CONNECT packet or valid data for some other protocol such as an earlier version of the MQTT specification.
    • Resolution:
      Hide

      Updated in WD08.

      Show
      Updated in WD08.

      Description

      What should a server do if it receives a connect packet with and incorrect protocol name?

      If the server receives a connect packet with no MQIsdp field present ( or its replacement field) The server could.
      1) Disconnect the Clients TCP session
      2) Return CONNACK RC=X01, then disconnect the clients TCP session.
      3) Return CONNACK with some new return code and then disconnect the clients TCP session.

        Attachments

          Activity

            People

            • Assignee:
              andrew_banks Andrew Banks (Inactive)
              Reporter:
              andrew_banks Andrew Banks (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: