OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

mqtt message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Updated: (MQTT-82) Provide a way for clean-session=1 clients to specify no client identifier


     [ http://tools.oasis-open.org/issues/browse/MQTT-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Coppen updated MQTT-82:
-------------------------------

    Proposal: 
Edit WD12 from 647 

The ClientId MUST comprise only Unicode characters, and the length of the UTF-8 encoding must be at least zero bytes and no more than 65535 bytes.

The server MAY restrict the ClientId it allows in terms of their lengths and the characters they contain, however the server MUST allow ClientIds which are between 1 and 23 UTF-8 encoded bytes in length, and contain only the characters "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".

A zero-byte clientId is considered a special case and a server MUST support the following behaviour or not permit zero-byte clientIds.

If the client supplies a zero-byte ClientId, the client MUST also set Clean Session to 1. This combination indicates that the client has no unique identifier and that the server will process the connection as if it were a unique client.

If the client supplies a zero-byte clientId with Clean Session set to 0, the server MUST respond to the CONNECT packet with a CONNACK return code 0x02 (Identifier rejected) and then terminate the TCP connection 

If the server rejects the ClientId it MUST respond to the CONNECT packet with a CONNACK return code 0x02 (Identifier rejected) and then terminate the TCP connection 

  was:
The Client Identifier (ClientId) MUST be present and is the first field in the payload.

The ClientId MUST comprise only Unicode characters, and the length of the UTF-8 encoding must be at least zero bytes and no more than 65535 bytes.

If the client supplies a zero-byte ClientId, the client MUST also set Clean Session to 1. This combination indicates that the client has no unique identifier. The server treats all clients connecting with a zero-byte ClientId as separate clients and does not take steps to ensure that there is only one active zero-byte ClientId connection at a time.


> Provide a way for clean-session=1 clients to specify no client identifier
> -------------------------------------------------------------------------
>
>                 Key: MQTT-82
>                 URL: http://tools.oasis-open.org/issues/browse/MQTT-82
>             Project: OASIS Message Queuing Telemetry Transport (MQTT) TC
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.1.1
>            Reporter: Andrew Schofield
>             Fix For: 3.1.1
>
>
> Client libraries often provide a way to generate a random client identifier for situations in which the client had not been assigned a client identifier. It would be better to provide a way in the protocol to omit a client identifier in the CONNECT packet for these situations, effectively making such clients anonymous.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]