[rabbitmq-discuss] =?utf-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9A_=5Brabbitmq-discuss=5D=E5=9B=9E=E5=A4=8D=EF=BC=9A__?=No timeout and sockets notclosed forStomp

Michael Klishin mklishin at gopivotal.com
Mon Jun 30 07:34:57 BST 2014

On 30 June 2014 at 10:27:34, zane (37714275 at qq.com) wrote:
> > I think we start heartbeat. this is rabbitmq.config
> {rabbitmq_stomp,[
> {tcp_listeners, [61613]},
> {heartbeat,200}
> ]}

Heartbeats in STOMP are bi-directional and are specified by clients on connection
using the "heart-beat" header.

RabbitMQ assumes 0,0 (no heartbeats) by default. Currently there is no way
to configure default server heartbeat. Perhaps there should be but
you want to configure *client* heartbeats, too .

See http://stomp.github.io/stomp-specification-1.2.html#Heart-beating
and your STOMP client documentation. A good default is 10-20 seconds, symmetric,
e.g. "15,15".

Staff Software Engineer, Pivotal/RabbitMQ

More information about the rabbitmq-discuss mailing list