Yakifo/amqtt

It seems that the handling of unkown message ids is broken

one4many opened this issue · 1 comments

I get a lot of these messages running amqtt as a broker:

[2022-02-13 12:02:26,878] :: WARNING :: amqtt.mqtt.protocol.handler :: Received PUBREL for unknown pending message with Id: 14882
[2022-02-13 12:02:26,879] :: WARNING :: amqtt.mqtt.protocol.handler :: Received PUBACK for unknown pending message Id: '11298'
[2022-02-13 12:02:26,879] :: WARNING :: amqtt.mqtt.protocol.handler :: Received PUBCOMP for unknown pending message with Id: 25890

Looking at the code it seems that aqmtt does nothing but print the warning, which seems wrong in my opinion. The messages come back infinitely from the clients because they have not been dealt with.

Could you post a small reproducible code such that it can be tested by the person who wants to fix it?