summaryrefslogtreecommitdiff
path: root/src/or/circuitstats.h
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2017-12-07 00:04:09 +0000
committerMike Perry <mikeperry-git@torproject.org>2017-12-07 00:04:38 +0000
commited89588c4fa672eb8a85c8c5cdce4f7ec08bc9d8 (patch)
tree8d52b6a7a71ddf8aedcff9fa28f6d82776f1e560 /src/or/circuitstats.h
parentb5d4cd1b4178bfa285fc5c512a29daa2580d96b8 (diff)
downloadtor-ed89588c4fa672eb8a85c8c5cdce4f7ec08bc9d8.tar.gz
tor-ed89588c4fa672eb8a85c8c5cdce4f7ec08bc9d8.zip
Bug #23114: Time out circuits immediately.
This changes the purpose of circuits that are past the timeout to measurement *as they are built*, ensuring accurate application of the timeout logic.
Diffstat (limited to 'src/or/circuitstats.h')
-rw-r--r--src/or/circuitstats.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/circuitstats.h b/src/or/circuitstats.h
index 68b66af1ba..7fc65fc8d1 100644
--- a/src/or/circuitstats.h
+++ b/src/or/circuitstats.h
@@ -45,6 +45,7 @@ double circuit_build_times_timeout_rate(const circuit_build_times_t *cbt);
double circuit_build_times_close_rate(const circuit_build_times_t *cbt);
void circuit_build_times_update_last_circ(circuit_build_times_t *cbt);
+void circuit_build_times_mark_circ_as_measurement_only(origin_circuit_t *circ);
#ifdef CIRCUITSTATS_PRIVATE
STATIC double circuit_build_times_calculate_timeout(circuit_build_times_t *cbt,