Does rabbit server have a default time-out for connections that has to
be overridden?

i.e. Our clients are opening connections for x days (persistant connections
into rabbit), and connections are timing out on our client applications
within a few minutes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120123/7c80a465/attachment.htm>

Search Discussions

  • Simon MacMullen at Jan 23, 2012 at 3:16 pm

    On 23/01/12 15:13, S Ahmed wrote:
    Does rabbit server have a default time-out for connections that has to
    be overridden? No.
    i.e. Our clients are opening connections for x days (persistant
    connections into rabbit), and connections are timing out on our client
    applications within a few minutes.
    Whenever this question has come up in the past it turns out that some
    piece of networking hardware is causing the problem.

    You may find that turning on AMQP heartbeats in your clients creates
    enough network traffic to fool your infrastructure...

    Cheers, Simon

    --
    Simon MacMullen
    RabbitMQ, VMware
  • Nishanth at Mar 7, 2013 at 11:25 pm
    Hi Simon,


    Would you please help me understand how to turn on heartbeats?


    Should I turn it on in the client? My code looks like below.


    But, after 60 seconds, rabbitmq closes the connection saying heartbeat
    timeout.


    parameters pika.ConnectionParameters(host=RABBITMQ_HOSTNAME,heartbeat_interval`,credentials=pika.PlainCredentials(RABBITMQ_USERNAME,RABBITMQ_PASSWORD))
    connection = pika.SelectConnection(parameters,on_connected)


    Thanks
    Nishanth
    On Monday, January 23, 2012 7:16:33 AM UTC-8, Simon MacMullen wrote:
    On 23/01/12 15:13, S Ahmed wrote:
    Does rabbit server have a default time-out for connections that has to
    be overridden? No.
    i.e. Our clients are opening connections for x days (persistant
    connections into rabbit), and connections are timing out on our client
    applications within a few minutes.
    Whenever this question has come up in the past it turns out that some
    piece of networking hardware is causing the problem.

    You may find that turning on AMQP heartbeats in your clients creates
    enough network traffic to fool your infrastructure...

    Cheers, Simon

    --
    Simon MacMullen
    RabbitMQ, VMware
    _______________________________________________
    rabbitmq-discuss mailing list
    rabbitmq... at lists.rabbitmq.com <javascript:>
    https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130307/4435bd8a/attachment.htm>

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedJan 23, '12 at 3:13p
activeMar 7, '13 at 11:25p
posts3
users3
websiterabbitmq.com
irc#rabbitmq

People

Translate

site design / logo © 2022 Grokbase