<div dir="ltr">Don't use select(2). Use one of the higher-level APIs I suggested earlier.<div><br></div><div>-Alan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 8:46 AM, kingsmasher1 <span dir="ltr"><<a href="mailto:raj.kumar.sanpui@gmail.com" target="_blank">raj.kumar.sanpui@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alan,<br>
<br>
For the purpose of the POC, we are creating the queue ourselves and<br>
publishing the messages, but in the real application, the queue will be<br>
already present and created by a backend (Java), and we have to just go<br>
ahead and consume in the frontend (which is in C/C++) based on the<br>
availability of messages in queue, and spawn a thread for consuming each<br>
messages of queue for fast processing.<br>
<br>
In betwn. before trying the other consume method (with timeout you<br>
suggested) i thght to give it a last go and i just bind my queue, right<br>
after creation, and i can see the messages getting persisted, i removed the<br>
O_NOBLOCK option too, but still it gets timedout.<br>
<br>
Any hint.<br>
<br>
Thanks,<br>
Raj<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/Why-is-the-select-always-getting-timed-out-in-consumer-tp32046p32077.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/Why-is-the-select-always-getting-timed-out-in-consumer-tp32046p32077.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>