[rabbitmq-discuss] Some problem about connection_closed_abruptly
Tim Watson
watson.timothy at gmail.com
Fri Nov 2 10:10:41 GMT 2012
Andy, if my hunch is right then the first step is to turn on heartbeats on the connection or ConnectionFactory. Once your client is able to notice network failures in a timely fashion them you'll have the proof that this being caused by the network and can take that to your network administrator to get it resolved.
Sent from my iPhone.
On 2 Nov 2012, at 09:40, andy lin <oldhomelh at gmail.com> wrote:
> I am using spring amqp which integrates the rabbit client for java with my
> client application , But How could you solve that question ? Could you share
> me your experience in detail ?
We detected this problem after receiving http://comments.gmane.org/gmane.comp.networking.rabbitmq.general/18374.You can simulate that behaviour by connecting a client to a broker, filtering certain packets and then turning one or the other off. On Linux the time it takes to 'realise' the network is effectively down is quite long. See 'man tcp' for details.
We solve that particular case by adding a timeout to our federation client's shutdown/disconnect, but in fact there is no general case solution to this problem for every situation. The best thing is to detect network failures quickly, and that is what setting a +/- 1min timeout does for you.
> thank you .By the way, I also have a the
> error :
>
I see you've posted that in another thread. This is proof that the tcp connection between these two machines has broken.
> =ERROR REPORT==== 1-Nov-2012::09:54:04 ===
> closing AMQP connection <0.317.0> (192.168.80.11:53727 ->
> 192.168.80.23:5672):
> {inet_error,ehostunreach}
>
> In the case, my consumer can't recieve any messages, and the rabbit server
> show the channel has broken down ,but the client log doesn't show any
> exceptions , and the error always come out in my production environment ,Do
> you have come accross the problem ?
>
>
>
> --
> View this message in context: http://rabbitmq.1065348.n5.nabble.com/Some-problem-about-connection-closed-abruptly-tp23032p23075.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list