<div dir="ltr">Thanks a lot Alan.<div>I will use that. It really helps.</div><div><br></div><div>Kind Regards</div><div>Raj Kumar</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 10:24 PM, Alan Antonuk [via RabbitMQ] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=32080&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>

<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        <div dir="ltr"><div class="im">Don't use select(2). Use one of the higher-level APIs I suggested earlier.<div><br></div></div><div>-Alan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">

On Fri, Dec 13, 2013 at 8:46 AM, kingsmasher1 <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=32079&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br>


</div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div class="im">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></div>
--<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" rel="nofollow" link="external" target="_blank">http://rabbitmq.1065348.n5.nabble.com/Why-is-the-select-always-getting-timed-out-in-consumer-tp32046p32077.html</a><br>



<div><div><div class="im">Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
</div><a href="http://user/SendEmail.jtp?type=node&node=32079&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" rel="nofollow" link="external" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div><div class="im">
<br>_______________________________________________
<br>rabbitmq-discuss mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=32079&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" rel="nofollow" link="external" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>

        
        
        
        <br>
        <br>
        </div><hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://rabbitmq.1065348.n5.nabble.com/Why-is-the-select-always-getting-timed-out-in-consumer-tp32046p32079.html" target="_blank" rel="nofollow" link="external">http://rabbitmq.1065348.n5.nabble.com/Why-is-the-select-always-getting-timed-out-in-consumer-tp32046p32079.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Why is the "select" always getting timed out in consumer?, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>


                <a href="http://rabbitmq.1065348.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/Why-is-the-select-always-getting-timed-out-in-consumer-tp32046p32080.html">Re: Why is the "select" always getting timed out in consumer?</a><br/>
Sent from the <a href="http://rabbitmq.1065348.n5.nabble.com/">RabbitMQ mailing list archive</a> at Nabble.com.<br/>