Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PublishProcessor里面的processQos1在高并发情况下有bug #56

Open
pptttiger opened this issue Sep 20, 2019 · 1 comment
Open

Comments

@pptttiger
Copy link

在高并发情况下,其他线程发送innerMsg时会生成新的messageId,但是发送PubAck需要使用源messageId,因此该地方需要使用变量保存一下源messageId,修改如下:

    int originMessageId = innerMsg.getMsgId();
    processMessage(innerMsg);
    log.debug("[PubMessage] -> Process qos1 message,clientId={}",innerMsg.getClientId());
    MqttPubAckMessage pubAckMessage = MessageUtil.getPubAckMessage(originMessageId);
@Cicizz
Copy link
Owner

Cicizz commented Sep 29, 2019

你好,3.0版本正在开发中,会修复此问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants