tweak timeouts more

pull/18/head
Jeff Becker 6 years ago
parent 2d18cfcdd7
commit 16508a99db
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -191,7 +191,8 @@ namespace llarp
uint64_t sequenceNo = 0;
llarp_time_t lastGoodSend = 0;
llarp_time_t createdAt;
llarp_time_t sendTimeout = 60 * 1000;
llarp_time_t sendTimeout = 20 * 1000;
llarp_time_t connectTimeout = 30 * 1000;
virtual void
ShiftIntroduction(){};

@ -1269,8 +1269,8 @@ namespace llarp
++itr;
}
return lastGoodSend
? (now >= lastGoodSend && lastGoodSend - now > sendTimeout)
: (now >= createdAt && now - createdAt > sendTimeout);
? (now >= lastGoodSend && now - lastGoodSend > sendTimeout)
: (now >= createdAt && now - createdAt > connectTimeout);
}
bool

Loading…
Cancel
Save