On Fri, 2017-03-17 at 17:21 +0100, Rabih M wrote: > Hello, > > Bit of context: > I am trying to implement a connection retry mechanism using proton. A > bit > similar to the failover Url in JMS... > > I discovered that we can set "reconnect" option in the > connection_options.reconnect(reconnect_timer). > > There are no clear documentation, how does this option behaves? > Does it try to reconnect only at connection start? and does it try to > reconnect in the middle of an Amqp communication (after > sending/receiving > some messages)? > > On the other side, how to know that the max retries or dead line > timeout is > reached? >
See include/proton/reconnect_timer.hpp for the things you can configure. This is still an "experimental" feature and could use some rounding out - your experience can be helpful with that. Currently this will reconnect on an unexpected disconnect - that is to say on_transport_closed() occurs before on_connection_closed() --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
