aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-03 11:51:32 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-09 14:01:00 -0400
commit285e7c98fdca8eda97683c0b96f86645ee3f0546 (patch)
treedda4fcc6a3d970ca12c1edc413ce4013397963a4 /src/or/circuitbuild.h
parent83137275a77eedbf177fbdb298c89a346abe2243 (diff)
downloadtor-285e7c98fdca8eda97683c0b96f86645ee3f0546.tar.gz
tor-285e7c98fdca8eda97683c0b96f86645ee3f0546.zip
Distinguish true clock jumps from idleness
Since we're going to be disabling the second-elapsed callback, we're going to sometimes have long periods when no events file, and so the current second is not updated. Handle that by having a better means to detect "clock jumps" as opposed to "being idle for a while". Tolerate far more of the latter. Part of #26009.
Diffstat (limited to 'src/or/circuitbuild.h')
-rw-r--r--src/or/circuitbuild.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h
index bea31ad0dd..f3a8bbfc99 100644
--- a/src/or/circuitbuild.h
+++ b/src/or/circuitbuild.h
@@ -29,7 +29,7 @@ void circuit_n_chan_done(channel_t *chan, int status,
int inform_testing_reachability(void);
int circuit_timeout_want_to_count_circ(const origin_circuit_t *circ);
int circuit_send_next_onion_skin(origin_circuit_t *circ);
-void circuit_note_clock_jumped(int seconds_elapsed);
+void circuit_note_clock_jumped(int seconds_elapsed, bool was_idle);
int circuit_extend(cell_t *cell, circuit_t *circ);
int circuit_init_cpath_crypto(crypt_path_t *cpath,
const char *key_data, size_t key_data_len,