diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-11 16:10:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-11 16:13:17 -0400 |
commit | 2a594fcde94ada2ef38d33d306b7df189a5e495c (patch) | |
tree | e195a35db465872a82795d2804f1a687b81b6e22 /src/or/connection.c | |
parent | e253e9577fb7d76bd534b343f0f63559b9a47b4a (diff) | |
download | tor-2a594fcde94ada2ef38d33d306b7df189a5e495c.tar.gz tor-2a594fcde94ada2ef38d33d306b7df189a5e495c.zip |
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.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index b0e0f84371..d82a66ed7d 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -555,7 +555,7 @@ connection_free_all(void) connection_or_clear_identity_map(); /* Clear out our list of broken connections */ - clear_broken_connection_map(); + clear_broken_connection_map(0); SMARTLIST_FOREACH(conns, connection_t *, conn, _connection_free(conn)); |