aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-11 16:10:24 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-11 16:13:17 -0400
commit2a594fcde94ada2ef38d33d306b7df189a5e495c (patch)
treee195a35db465872a82795d2804f1a687b81b6e22 /src/or/connection_or.h
parente253e9577fb7d76bd534b343f0f63559b9a47b4a (diff)
downloadtor-2a594fcde94ada2ef38d33d306b7df189a5e495c.tar
tor-2a594fcde94ada2ef38d33d306b7df189a5e495c.tar.gz
Disable recording new broken conns when we have bootstrapped
Rationale: right now there seems to be no way for our bootstrap status to dip under 100% once it has reached 100%. Thus, recording broken connections after that point is useless, and wastes memory. If at some point in the future we allow our bootstrap level to go backwards, then we should change this rule so that we disable recording broken connection states _as long as_ the bootstrap status is 100%.
Diffstat (limited to 'src/or/connection_or.h')
-rw-r--r--src/or/connection_or.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.h b/src/or/connection_or.h
index abcfe83b9..072edbd8c 100644
--- a/src/or/connection_or.h
+++ b/src/or/connection_or.h
@@ -14,7 +14,7 @@
void connection_or_remove_from_identity_map(or_connection_t *conn);
void connection_or_clear_identity_map(void);
-void clear_broken_connection_map(void);
+void clear_broken_connection_map(int disable);
or_connection_t *connection_or_get_for_extend(const char *digest,
const tor_addr_t *target_addr,
const char **msg_out,