Skip to content

When Qos is AT_MOST_ONCE , connection.publish() is blocked all the time. #3

Description

@zzhangxiaoyun

When Qos is AT_MOST_ONCE , connection.publish() is blocked all the time.
I found class CallbackConnection line 699.

private void send(Acked command, Callback cb) {
    short id = 0;
    //if(command.qos() != QoS.AT_MOST_ONCE) {
        id = getNextMessageId();
        command.messageId(id);
   // }
    send(new Request(id, command.encode(), cb));
}

remove the "//", problem solved。

Looking forward to your reply,thank you。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions