]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update ns downloads when we receive a bridge descriptor
authorNick Mathewson <nickm@torproject.org>
Mon, 10 Mar 2014 19:01:27 +0000 (15:01 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 10 Mar 2014 19:01:27 +0000 (15:01 -0400)
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.

changes/bug9229 [new file with mode: 0644]
src/or/entrynodes.c

diff --git a/changes/bug9229 b/changes/bug9229
new file mode 100644 (file)
index 0000000..ad7fd22
--- /dev/null
@@ -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.
+
index 2aa063cda42ba061b50151d90390412e11fa9e27..59770fa658ce594109ac6aad2df6ddc5e10f7829 100644 (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);
     }
   }
 }