[tor-bugs] #1981 [Tor Client]: when your bridges go down, you don't optimistically retry
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Tue Sep 28 21:14:16 UTC 2010
#1981: when your bridges go down, you don't optimistically retry
------------------------+---------------------------------------------------
Reporter: arma | Owner: arma
Type: defect | Status: new
Priority: major | Milestone: Tor: 0.2.2.x-final
Component: Tor Client | Version:
Keywords: | Parent:
------------------------+---------------------------------------------------
Comment(by arma):
Here's the fix:
{{{
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 35d8087..d696fe1 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -4551,6 +4551,10 @@ learned_bridge_descriptor(routerinfo_t *ri, int
from_cach
add_an_entry_guard(ri, 1);
log_notice(LD_DIR, "new bridge descriptor '%s' (%s)", ri->nickname,
from_cache ? "cached" : "fresh");
+ /* set entry->made_contact so if it goes down we don't drop it from
+ * our entry node list */
+ entry_guard_register_connect_status(ri->cache_info.identity_digest,
+ 1, 0, now);
if (first)
routerlist_retry_directory_downloads(now);
}
}}}
Will merge shortly.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1981#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list