[rabbitmq-discuss] receive no-delay msg from publisher
cyj
lwice04 at gmail.com
Mon Oct 22 09:37:31 BST 2012
i encounter a problem that when i received one msg,i have to proceed a long
time ,so when i received the next msg,i got a delay msg published by the
publisher that i don't need.
i need the no-delay msg so if the msg published too fast, some of them
should be abandoned.
can anybody give me some advice?
i try the immediate flag,but it do not work,beacuse i think when my program
is running, there is a consumer connected to the exchange.
while(true)
{
std::string msg;
std::string rk;
if(!this->waitforMessage(msg ,rk)){
continue;
}
sleep(2000);
}
thanks.
--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/receive-no-delay-msg-from-publisher-tp22745.html
Sent from the RabbitMQ mailing list archive at Nabble.com.
More information about the rabbitmq-discuss
mailing list