MQTT3.1.3-6 stated that the client can connect without giving up an client identifier. However, the broker should generate one for the client id as of the client gave the identifier to broker. The client will now disconnect if the client hasn't given up an identifier with clean session set to 0. Done this regarding issue #190
NettyChannelAssertions class has been modified so you could add a message to the assertion. Unit tests have been added to test the modified processConnect() method. The server can allow zero byte client identifiers through moquette configuration.
This commit is contained in:
@@ -15,4 +15,8 @@ password_file config/password_file.conf
|
||||
|
||||
#false to accept only client connetions with credentials
|
||||
#true to accept client connection without credentails, validating only the one that provides
|
||||
allow_anonymous true
|
||||
allow_anonymous true
|
||||
|
||||
#false to prohibit clients from connecting without a clientid.
|
||||
#true to allow clients to connect without a clientid. One will be generated for them.
|
||||
allow_zero_byte_client_id false
|
||||
Reference in New Issue
Block a user