Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Bug in dequeing of msgs

Hi Martin,

I don't *think* that's a bug. New messages are always added to the end of the queue, so to get FIFO, when we get a message, it should be the first in the queue.


On 08/15/2013 02:28 PM, Malik, Martin wrote:
Hi guys,

I think I found another bug in the way how received messages are dequed in Async mode.

MQTTAsync.c, line 1430:
				qEntry* qe = (qEntry*)(m->c->messageQueue->first->content);

This always reads the 1st message sent, but it should dequeue the last one instead:

				qEntry* qe = (qEntry*)(m->c->messageQueue->last->content);


paho-dev mailing list

Back to the top