Relaxed constraint on clientID length #11

This commit is contained in:
andrea
2015-01-15 20:52:40 +01:00
parent 1e63652d32
commit 95107e1624
2 changed files with 2 additions and 2 deletions
@@ -151,7 +151,7 @@ class ProtocolProcessor implements EventHandler<ValueEvent> {
return;
}
if (msg.getClientID() == null || msg.getClientID().length() > 23 || msg.getClientID().length() == 0) {
if (msg.getClientID() == null || msg.getClientID().length() == 0) {
ConnAckMessage okResp = new ConnAckMessage();
okResp.setReturnCode(ConnAckMessage.IDENTIFIER_REJECTED);
session.write(okResp);