[rabbitmq-discuss] Disallow clients without heartbeat

Matthias Radestock matthias at rabbitmq.com
Wed Aug 1 09:18:30 BST 2012


Dave,

On 01/08/12 09:07, Francesco Mazzoli wrote:
> At Tue, 31 Jul 2012 17:23:45 -0400,
> Dave Curylo wrote:
>> I would like all my clients to specify a heartbeat so the server
>> will disconnect them automatically if they become unresponsive. Is
>> there  any way on
>> the message broker to require that clients set a heartbeat, and
>> disallow connections from clients that don't?
 >
> No, you can't.  You might be able to hack something up with a plugin.
> The code that accepts the `tune_ok' frames and sets up the heartbeats
> is in `rabbit_reader.erl'.

As an aside, we are planning to let a server admin set a default 
heartbeat interval in the config. Most clients will just accept that 
but, as per the AMQP spec, they are under no obligation to do so.

Matthias.


More information about the rabbitmq-discuss mailing list