On 07/28/2015 10:57 AM, Tomáš Šoltys wrote:
So to make it work it is enough to set idle timeout on both sides and
proton will handle rest?

If an idle timeout is set by the local application, then proton will raise an error if there is no incoming traffic for that time.

If an idle timeout is specified by the remote peer, proton will emit empty frames into its output stream provided the pn_transport_tick() function is called frequently enough.

Is heartbeat being sent by pn_transport_tick() ?
If so in what event it should be sent? In PN_TRANSPORT ?

Yes, the pn_transport_tick will trigger the writing of empty frames to the transport and this should result in a transport event as for any other write.

Reply via email to