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

Tony Garnock-Jones tonyg at lshift.net
Thu Jul 1 03:00:06 BST 2010


Hi Alex,

Thanks for the patch. It's in our TODO queue now :-)

Regards,
  Tony


alex chen wrote:
> Matthias, 
> 
> attached please find the patch to rabbitmq-c.
> thanks.
> 
> -alex
> 
> 
> 
> ----- 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.
> 
> 
> Matthias.
> 
> 
>       
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



More information about the rabbitmq-discuss mailing list