moquette icon indicating copy to clipboard operation
moquette copied to clipboard

Error processing protocol message: PUBACK

Open Demitrius opened this issue 5 years ago • 0 comments

Expected behavior

Moquette works without exceptions when receive many (1000 for example) messages

Actual behavior

Many exceptions when client (javascript Paho) send 1000 messages in loop. Some first (300-400 messages) was processed normal, but then exceptions.

Steps to reproduce

  1. Run Moquette.
  2. Run javacript code in browser (Paho lib required) Part of code:
var mqtt_client = new Paho.MQTT.Client(host, Number(port), "/mqtt", device_guid);
mqtt_client.connect({cleanSession:false, reconnect: true, userName:'user', password:'pass'});

// loop
for (var iii =0; iii < 1000; iii++) mqtt_client.send(device_guid, 'Hello Test #'+iii, 1, false);

Minimal yet complete reproducer code (or URL to code) or complete log file

Log with exception attached mqtt-log.log

Moquette MQTT version

version 0.13-SNAPSHOT

JVM version (e.g. java -version)

openjdk version "11.0.3" 2019-04-16 LTS OpenJDK Runtime Environment 18.9 (build 11.0.3+7-LTS) OpenJDK 64-Bit Server VM 18.9 (build 11.0.3+7-LTS, mixed mode, sharing)

OS version (e.g. uname -a)

Linux dev.cwt.local 4.1.12-124.26.10.el7uek.x86_64 #2 SMP Fri Apr 19 18:00:11 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux

Demitrius avatar Jun 13 '19 11:06 Demitrius