Explain backoff
This commit is contained in:
parent
93d9ba10c2
commit
6b10bd6c51
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ static QueuedMessage SendQueue[MessageQueueSize]{};
|
|||
static std::atomic_uint SendQueueNextAdd{0};
|
||||
static std::atomic_uint SendQueueNextSend{0};
|
||||
static std::atomic_uint SendQueuePendingSends{0};
|
||||
// We want to auto connect, and retry on failure, but not as fast as possible. This does expoential
|
||||
// backoff from 0.5 seconds to 1 minute
|
||||
static Backoff ReconnectTimeMs(500, 60 * 1000);
|
||||
static auto NextConnect{std::chrono::system_clock::now()};
|
||||
static int Pid{0};
|
||||
|
|
Loading…
Reference in a new issue