]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Generate bootstrapping status messages for microdescs too
authorNick Mathewson <nickm@torproject.org>
Tue, 8 Oct 2013 15:31:08 +0000 (11:31 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 8 Oct 2013 15:32:02 +0000 (11:32 -0400)
Fix for 9927.

changes/bug9927 [new file with mode: 0644]
src/or/directory.c
src/or/relay.c

diff --git a/changes/bug9927 b/changes/bug9927
new file mode 100644 (file)
index 0000000..e66280c
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features:
+    - Generate bootstrapping status update events correctly for fetching
+      microdescriptors. Fixes bug 9927.
+
index b4381ac0de9fdc455d79e5b587f243393c59e8ef..3752367c448bbff7fdbf4dae941bc562fe729677 100644 (file)
@@ -2111,6 +2111,8 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
         /* Mark remaining ones as failed. */
         dir_microdesc_download_failed(which, status_code);
       }
+      control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_DESCRIPTORS,
+                              count_loading_descriptors_progress());
       SMARTLIST_FOREACH(which, char *, cp, tor_free(cp));
       smartlist_free(which);
       smartlist_free(mds);
index 3138c5e8d11f6c31ef22b4bc45660c1e3a1abcaf..29dc36194aaf92edc09c8d93b393b3fd9b7ca51f 100644 (file)
@@ -1103,6 +1103,7 @@ connection_edge_process_relay_cell_not_open(
           control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_STATUS, 0);
           break;
         case DIR_PURPOSE_FETCH_SERVERDESC:
+        case DIR_PURPOSE_FETCH_MICRODESC:
           control_event_bootstrap(BOOTSTRAP_STATUS_LOADING_DESCRIPTORS,
                                   count_loading_descriptors_progress());
           break;