eclipse-paho / eclipse-paho/paho.mqtt.java

"token in use" Exception stops sending of buffered messages

Open
#484 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

Please fill out the form below before submitting, thank you!

- [x] Bug exists Release Version 1.2.0 ( Master Branch)
- [ ] Bug exists in Snapshot Version 1.2.1-SNAPSHOT (Develop Branch)
- [ ] Bug exists in MQTTv5 Version (mqttv5-new Branch)

After reconnect messages stored in DisconnectedMessageBuffer will not be send, because an Exception "token in use" will be thrown, which breaks the whole resend loop.

> [6725] DisconnectedMessageBuffer.run: Restoring all buffered messages.
> [6725] ClientComms.internalSend: fail: token in use: key=0 message=PUBLISH qos:0 retained:false dup:false topic:"XXXX" payload:XXX"

It is not clear too, why the Exception was thrown at all.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.