A few more tweaks to TCP failover... seems to be switching back and forth pretty well now!
This commit is contained in:
parent
158002d2d1
commit
fe85426df6
4 changed files with 38 additions and 47 deletions
|
@ -282,14 +282,6 @@ public:
|
|||
return _lastAnnouncedTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param _r Runtime environment
|
||||
* @param now Current time
|
||||
* @return True if it's time to attempt TCP failover (if we have TCP_OUT paths)
|
||||
*/
|
||||
bool isTcpFailoverTime(const RuntimeEnvironment *_r,uint64_t now) const
|
||||
throw();
|
||||
|
||||
/**
|
||||
* @return Current latency or 0 if unknown (max: 65535)
|
||||
*/
|
||||
|
@ -508,6 +500,9 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
bool _isTcpFailoverTime(const RuntimeEnvironment *_r,uint64_t now) const
|
||||
throw();
|
||||
|
||||
unsigned char _key[ZT_PEER_SECRET_KEY_LENGTH];
|
||||
Identity _id;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue