[rabbitmq-discuss] Regarding the non-blocking call of "amqp_simple_wait_frame"

Tony Garnock-Jones tonygarnockjones+rabbitmq at gmail.com
Mon Jan 17 15:24:10 GMT 2011

2011/1/17 Alexandre Kalendarev <akalend at mail.ru>

> the rabbitmq-c client d't have no-blocking i/o.

A cheap hack would be to use select() (etc) to wait for some input to become
available, and then call amqp_simple_wait_frame.

I've also experimented with using libevent with librabbitmq, though it's Not
Going To Be Easy To Follow: see read_callback at
https://github.com/tonyg/rais/blob/master/src/connection.c#L384-411, and
check out librabbitmq's amqp_handle_input().

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110117/c4b926f8/attachment.htm>

More information about the rabbitmq-discuss mailing list