More TCP-related fixes and tweaks to ping timing, resynchronize, and startup.
This commit is contained in:
parent
2ac56fd120
commit
c231510f8b
5 changed files with 60 additions and 43 deletions
|
@ -64,7 +64,7 @@ class RuntimeEnvironment
|
|||
public:
|
||||
RuntimeEnvironment() :
|
||||
shutdownInProgress(false),
|
||||
timeOfLastNetworkEnvironmentChange(0),
|
||||
timeOfLastResynchronize(0),
|
||||
timeOfLastPacketReceived(0),
|
||||
log((Logger *)0),
|
||||
prng((CMWC4096 *)0),
|
||||
|
@ -91,7 +91,7 @@ public:
|
|||
volatile bool shutdownInProgress;
|
||||
|
||||
// Time network environment (e.g. fingerprint) last changed -- used to determine online-ness
|
||||
volatile uint64_t timeOfLastNetworkEnvironmentChange;
|
||||
volatile uint64_t timeOfLastResynchronize;
|
||||
|
||||
// Time last packet was received -- from anywhere. This is updated in Peer::receive()
|
||||
// via an ugly const_cast<>.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue