mbroadst / qamqp

AMQP 0.9.1 implementation for Qt
Other
151 stars 127 forks source link

QAmqpQueue::messageCount The number of entries fetched does not change #85

Open poapoauu opened 6 months ago

poapoauu commented 6 months ago

QAmqpQueue::messageCount The number of entries fetched does not change only the data that the consumer gets from the first connection is correct

WollZebra commented 6 months ago

Hi @poapoauu, do you have a little more context and code? How do you reproduce that and what is your setup?

You can build qamqp with QAMQP_DEBUG defined - then you should find this qDebug output including the messageCount after a

declareOk qAmqpDebug("-> queue#declareOk( queue-name=%s, message-count=%d, consumer-count=%d )", qPrintable(name), messageCount, consumerCount); purgeOk qAmqpDebug("-> queue#purgeOk( queue-name=%s, message-count=%d )", qPrintable(name), messageCount); deleteOk qAmqpDebug("-> queue#deleteOk( queue-name=%s, message-count=%d )", qPrintable(name), messageCount);