diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2017-01-19 13:01:18 -0500 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2017-01-25 09:48:14 -0500 |
commit | 99464bc38e9575ff47f8e33223b252dcea2055e3 (patch) | |
tree | 8b01122ab862afac1470e86d0a780780329250d7 /COPYING | |
parent | 054d664215ca8d5f17d8aadbfc5b78a8dcd5115c (diff) |
net: Consistently use GetTimeMicros() for inactivity checks
The use of mocktime in test logic means that comparisons between
GetTime() and GetTimeMicros()/1000000 are unreliable since the former
can use mocktime values while the latter always gets the system clock;
this changes the networking code's inactivity checks to consistently
use the system clock for inactivity comparisons.
Also remove some hacks from setmocktime() that are no longer needed,
now that we're using the system clock for nLastSend and nLastRecv.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions