Unexpected error: pubrec_packetId_not_found #12883
-
Hi! I have a client that receives and sends messages. I started to notice that sometimes some of the messages qos 2 were not being processed. I recorded a log trace for the client and saw this
(I will attach the whole log as a file) From the log I understood that the broker sends a message to the client via qos 2 and after a minute and twenty seconds the client sends a pubrec to the broker. But for some reason the broker responds with an error to this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @YraganTron, Looks pretty suspicious indeed. Just to clarify:
|
Beta Was this translation helpful? Give feedback.
Most likely, yes.
I believe it actually doesn't hang in the queue. The message gets allocated Packet ID and delivered right away, skipping any queues, likely because there is still enough space according to the Client's Receive Maximum. Then it expires once these 5 seconds timeout pass, thereby freeing the Packet ID, this is probably why there are warnings when PUBRECs arrive later.