Hi Gordon, Thanks a lot for help.
Does this mean that for example I will set timeout to 10 seconds and message processing in PN_TRANSFER will take 1 minute or more that connection will eventually timeout? Is my assumption correct? Thanks and regards, Tomas 2015-07-28 13:09 GMT+02:00 Gordon Sim <[email protected]>: > 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. > -- Tomáš Šoltys [email protected] http://www.range-software.com (+420) 776-843-663
