On Mon, Jun 17, 2019 at 3:33 AM Schaik, Jacco van <jacco.van.sch...@nlr.nl> wrote:
> Hi, > > I'm building an application using the Qpid Proton C API, version 0.28.0. > I'm using a Connection Driver because my application has its own event > loop.? > > Everything seems to be working, but the application on the other side of > the connection has an idle timeout, so if nothing comes over the line for > (in my case) 30 seconds it times out and drops the connection. I know AMQP > has heartbeat messages that can be used to keep the connection open, but > obviously Proton doesn't get a chance to send them when I'm waiting in my > own event loop. > > Now I can have my event loop wake up every now and then, and call a Proton > function to send a heartbeat. But I haven't been able to find a function > that does that?. I've tried calling pn_transport_tick() but that doesn't > seem to work. Is there some other function that will send a heartbeat for > me? > > > Any info greatly appreciated. > > > Regards, Jacco >