#include <reconnection.h>
Public Attributes | |
| std::string | store_path = "" |
| persist the peer book here (empty = memory only) | |
| bool | persist_discovered = true |
| remember dialed peers automatically | |
| size_t | max_targets = 1024 |
| cap on ACTIVE re-dial targets (bounds memory + dial fan-out) | |
| size_t | max_attempts = 0 |
| give up actively dialing a target after this many consecutive failures; 0 = retry forever | |
| size_t | startup_targets = 32 |
| on start, actively re-dial this many best peers from the book | |
| size_t | archive_max = 4096 |
| cap on the persistent peer book (history of everyone we met) | |
| std::chrono::seconds | archive_max_age {std::chrono::hours(24 * 30)} |
| forget peers unseen this long (30 days) | |
| std::chrono::milliseconds | base_backoff {1000} |
| std::chrono::milliseconds | max_backoff {60000} |
| std::chrono::milliseconds | tick {1000} |
| std::chrono::milliseconds | dial_timeout {15000} |
| assume an in-flight dial is dead after this if no connect/fail event arrives (backstop only) | |
Definition at line 43 of file reconnection.h.
| size_t librats::ReconnectionService::Config::archive_max = 4096 |
cap on the persistent peer book (history of everyone we met)
Definition at line 49 of file reconnection.h.
| std::chrono::seconds librats::ReconnectionService::Config::archive_max_age {std::chrono::hours(24 * 30)} |
forget peers unseen this long (30 days)
Definition at line 50 of file reconnection.h.
| std::chrono::milliseconds librats::ReconnectionService::Config::base_backoff {1000} |
Definition at line 51 of file reconnection.h.
| std::chrono::milliseconds librats::ReconnectionService::Config::dial_timeout {15000} |
assume an in-flight dial is dead after this if no connect/fail event arrives (backstop only)
Definition at line 54 of file reconnection.h.
| size_t librats::ReconnectionService::Config::max_attempts = 0 |
give up actively dialing a target after this many consecutive failures; 0 = retry forever
Definition at line 47 of file reconnection.h.
| std::chrono::milliseconds librats::ReconnectionService::Config::max_backoff {60000} |
Definition at line 52 of file reconnection.h.
| size_t librats::ReconnectionService::Config::max_targets = 1024 |
cap on ACTIVE re-dial targets (bounds memory + dial fan-out)
Definition at line 46 of file reconnection.h.
| bool librats::ReconnectionService::Config::persist_discovered = true |
remember dialed peers automatically
Definition at line 45 of file reconnection.h.
| size_t librats::ReconnectionService::Config::startup_targets = 32 |
on start, actively re-dial this many best peers from the book
Definition at line 48 of file reconnection.h.
| std::string librats::ReconnectionService::Config::store_path = "" |
persist the peer book here (empty = memory only)
Definition at line 44 of file reconnection.h.
| std::chrono::milliseconds librats::ReconnectionService::Config::tick {1000} |
Definition at line 53 of file reconnection.h.