std::list<MessageRef> waiting_for_session;
utime_t last_rotating_renew_sent;
- std::unique_ptr<Context> session_established_context;
bool had_a_connection;
double reopen_interval_multiplier;
send_mon_message(MessageRef{m, false});
}
void send_mon_message(MessageRef m);
- /**
- * If you specify a callback, you should not call
- * reopen_session() again until it has been triggered. The MonClient
- * will behave, but the first callback could be triggered after
- * the session has been killed and the MonClient has started trying
- * to reconnect to another monitor.
- */
- void reopen_session(Context *cb=NULL) {
+
+ void reopen_session() {
std::lock_guard l(monc_lock);
- if (cb) {
- session_established_context.reset(cb);
- }
_reopen_session();
}