send peer tests with random delays

This commit is contained in:
orignal 2023-11-09 21:56:32 -05:00
parent 0021501d75
commit 083034fa35
2 changed files with 43 additions and 3 deletions

View file

@ -105,6 +105,8 @@ namespace transport
const uint64_t SESSION_CREATION_TIMEOUT = 15; // in seconds
const int PEER_TEST_INTERVAL = 71; // in minutes
const int PEER_TEST_DELAY_INTERVAL = 20; // in milliseconds
const int PEER_TEST_DELAY_INTERVAL_VARIANCE = 30; // in milliseconds
const int MAX_NUM_DELAYED_MESSAGES = 150;
const int CHECK_PROFILE_NUM_DELAYED_MESSAGES = 15; // check profile after
class Transports