On 11/23/2011 12:30 PM, Toralf Lund wrote:
Pavel Moravec wrote:
Hi Toralf,
see Programming in Apache Qpid
(http://qpid.apache.org/documentation.html, direct link:
http://qpid.apache.org/books/0.12/Programming-In-Apache-Qpid/pdf/Programming-In-Apache-Qpid.pdf)
and Section 2.10. Connection Options.
Thanks, I wasn't aware of that document - it may prove very useful.

Some of the finer details regarding heartbeats are are not entirely
clear from this, though. Like, when do they start being sent?

Once the AMQP connection handshake has completed.

When the
option is enabled, or not until open() is called?

They aren't actually sent until the connection is opened. However the client starts timing from the point it requests the open so that if the connection is not actually established, it will time out.

And what exactly are
they anyway? Surely not "normal" data across the TCP link, since they
can also help detecting a connection problem?

They are just special AMQP controls send over TCP. They are really intended for detecting loss of a connection in a timely manner. However the c++ client also relies on them for detecting failure to connect in a more timely manner.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to