fix datagram bugs

This commit is contained in:
Jeff Becker 2017-04-09 08:52:42 -04:00
parent 4f1dfe2ef7
commit d91c7e5e79
4 changed files with 20 additions and 6 deletions

View file

@ -26,7 +26,7 @@ namespace datagram
// milliseconds interval a routing path is used before switching
const uint64_t DATAGRAM_SESSION_PATH_SWITCH_INTERVAL = 20 * 60 * 1000;
// milliseconds before lease expire should we try switching leases
const uint64_t DATAGRAM_SESSION_LEASE_HANDOVER_WINDOW = 10 * 1000;
const uint64_t DATAGRAM_SESSION_LEASE_HANDOVER_WINDOW = 30 * 1000;
// milliseconds fudge factor for leases handover
const uint64_t DATAGRAM_SESSION_LEASE_HANDOVER_FUDGE = 1000;
// milliseconds minimum time between path switches