[rabbitmq-discuss] socket read timeout in rabbitmq-c

alex chen chen650 at yahoo.com
Thu Jun 3 01:55:26 BST 2010


attached please find the patch to rabbitmq-c.


----- Original Message ----
> From: Matthias Radestock <matthias at rabbitmq.com>
> To: alex chen <chen650 at yahoo.com>
> Cc: rabbitmq-discuss at lists.rabbitmq.com
> Sent: Tue, May 25, 2010 1:00:10 AM
> Subject: Re: [rabbitmq-discuss] socket read timeout in rabbitmq-c
> Alex,

apologies for the delay in responding to this ...

alex chen 
> wrote:
> I am wondering if it can support specifying a time out 
> (e.g.
> amqp_set_timeout(int timeout)), and add select(timeout) before 
> the
> read() in wait_frame?

That would seem like a worthwhile 
> addition. Care to submit a patch?

> We found in several cases that 
> amqp_channel_open hanged while doing
> read() in 
> wait_frame_inner().

That really shouldn't happen, from an AMQP protocol 
> perspective. Was there anything noteworthy in the server logs? Is this 
> reproducible? If so it may help to run via rabbit's tracer 
> (http://www.rabbitmq.com/examples.html#tracer) or wireshark to see what's 
> happening at the protocol level and thus determine whether there is a problem at 
> the server end (highly unlikely) or client.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: rabbitmq-c.patch
Type: text/x-patch
Size: 3849 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100602/c6684bb3/attachment.bin>

More information about the rabbitmq-discuss mailing list