Add reconnect interval tracking to session to fix issue #883.