mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-11-27 20:14:23 +01:00
Explain backoff
This commit is contained in:
parent
93d9ba10c2
commit
6b10bd6c51
@ -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 New Issue
Block a user