diff options
author | Roger Dingledine <arma@torproject.org> | 2005-03-19 23:58:42 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-03-19 23:58:42 +0000 |
commit | 4a497e503077826228df667083548d06bf8afc2f (patch) | |
tree | b9afc12290390ca539fd91c78dc54c1fed33c39a /src/or/circuitbuild.c | |
parent | 856ab90ca8cf6ace5528396049d53e302d1a3ebe (diff) | |
download | tor-4a497e503077826228df667083548d06bf8afc2f.tar.gz tor-4a497e503077826228df667083548d06bf8afc2f.zip |
if our clock jumps forward by 100 seconds or more, assume something
has gone wrong with our network and abandon all not-yet-used circs.
svn:r3792
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 2c9542e99c..4862442678 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -469,6 +469,12 @@ int circuit_send_next_onion_skin(circuit_t *circ) { return 0; } +void circuit_note_clock_jumped(int seconds_elapsed) { + log_fn(LOG_NOTICE,"Your clock just jumped %d seconds forward; assuming established circuits no longer work.", seconds_elapsed); + has_completed_circuit=0; /* so it'll log when it works again */ + circuit_mark_all_unused_circs(); +} + /** Take the 'extend' cell, pull out addr/port plus the onion skin. Make * sure we're connected to the next hop, and pass it the onion skin in * a create cell. |