Update ns downloads when we receive a bridge descriptor

This prevents long stalls when we're starting with a state file but
with no bridge descriptors.  Fixes bug 9229.  I believe this bug has
been present since 0.2.0.3-alpha.
This commit is contained in:
Nick Mathewson 2014-03-10 15:01:27 -04:00
parent cbf9e74236
commit db72479eea
2 changed files with 10 additions and 1 deletions

5
changes/bug9229 Normal file
View File

@ -0,0 +1,5 @@
o Minor bugfixes:
- Avoid 60-second delays in the bootstrapping process when Tor
is launching for a second time while using bridges. Fixes bug 9229;
bugfix on 0.2.0.3-alpha.

View File

@ -2115,8 +2115,12 @@ learned_bridge_descriptor(routerinfo_t *ri, int from_cache)
* our entry node list */
entry_guard_register_connect_status(ri->cache_info.identity_digest,
1, 0, now);
if (first)
if (first) {
/* XXXX apparently, this is never called. See bug #9229. */
routerlist_retry_directory_downloads(now);
}
update_networkstatus_downloads(now);
}
}
}