summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2010-01-11 10:16:50 -0800
committerMike Perry <mikeperry-git@fscked.org>2010-02-18 09:08:31 -0800
commitf459388c29d1a072e1809265ccd252671975edeb (patch)
treeb809b8ce6f105d65610f3437cd69667dadb92e8b
parentac68704f07c2b70321b72e3b8665cb6d12da7e6b (diff)
downloadtor-f459388c29d1a072e1809265ccd252671975edeb.tar.gz
tor-f459388c29d1a072e1809265ccd252671975edeb.zip
Add an event for a case where we drop guards.
Also add a comment about an odd CBT timeout edgecase.
-rw-r--r--src/or/circuitbuild.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index b16e9a4d80..c73f98bb9f 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -594,6 +594,9 @@ void
circuit_build_times_add_timeout_worker(circuit_build_times_t *cbt,
double quantile_cutoff)
{
+ // XXX: This may be failing when the number of samples is small?
+ // Keep getting values for the largest timeout bucket over and over
+ // again... Probably because alpha is very very large in that case..
build_time_t gentime = circuit_build_times_generate_sample(cbt,
quantile_cutoff, MAX_SYNTHETIC_QUANTILE);
@@ -3313,6 +3316,7 @@ entry_guard_register_connect_status(const char *digest, int succeeded,
"Removing from the list. %d/%d entry guards usable/new.",
entry->nickname, buf,
num_live_entry_guards()-1, smartlist_len(entry_guards)-1);
+ control_event_guard(entry->nickname, entry->identity, "DROPPED");
entry_guard_free(entry);
smartlist_del_keeporder(entry_guards, idx);
log_entry_guards(LOG_INFO);