mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
omit the first heartbeat message (resolves ticket 6758)
This commit is contained in:
parent
3a0b8c85c4
commit
e964f81143
5
changes/feature6758
Normal file
5
changes/feature6758
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
o Minor features:
|
||||||
|
- Omit the first heartbeat log message, because it never has anything
|
||||||
|
useful to say, and it clutters up the bootstrapping messages.
|
||||||
|
Resolves ticket 6758.
|
||||||
|
|
@ -1561,7 +1561,8 @@ run_scheduled_events(time_t now)
|
|||||||
/** 12. write the heartbeat message */
|
/** 12. write the heartbeat message */
|
||||||
if (options->HeartbeatPeriod &&
|
if (options->HeartbeatPeriod &&
|
||||||
time_to_next_heartbeat <= now) {
|
time_to_next_heartbeat <= now) {
|
||||||
log_heartbeat(now);
|
if (time_to_next_heartbeat) /* don't log the first heartbeat */
|
||||||
|
log_heartbeat(now);
|
||||||
time_to_next_heartbeat = now+options->HeartbeatPeriod;
|
time_to_next_heartbeat = now+options->HeartbeatPeriod;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user