summaryrefslogtreecommitdiff
path: root/src/feature/control/control.h
diff options
context:
space:
mode:
authorTaylor Yu <catalyst@torproject.org>2018-08-31 12:56:23 -0500
committerTaylor Yu <catalyst@torproject.org>2018-09-10 15:20:50 -0500
commit617160895ce9bb403fe5a864925ffb1894f9086c (patch)
tree812b243a81dd6c54516cbc6e3cde2b8e5859ceb4 /src/feature/control/control.h
parent687bf3ea645ef8c5ce8c9f02a25274121ca13318 (diff)
downloadtor-617160895ce9bb403fe5a864925ffb1894f9086c.tar.gz
tor-617160895ce9bb403fe5a864925ffb1894f9086c.zip
Defer reporting directory bootstrap progress
Existing cached directory information can cause misleadingly high bootstrap percentages. To improve user experience, defer reporting of directory information progress until at least one connection has succeeded to a relay or bridge. Closes ticket 27169.
Diffstat (limited to 'src/feature/control/control.h')
-rw-r--r--src/feature/control/control.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/control/control.h b/src/feature/control/control.h
index 7f57228e5c..3445eb0a9d 100644
--- a/src/feature/control/control.h
+++ b/src/feature/control/control.h
@@ -195,6 +195,8 @@ void control_event_bootstrap(bootstrap_status_t status, int progress);
MOCK_DECL(void, control_event_bootstrap_prob_or,(const char *warn,
int reason,
or_connection_t *or_conn));
+void control_event_boot_dir(bootstrap_status_t status, int progress);
+void control_event_boot_first_orconn(void);
void control_event_bootstrap_problem(const char *warn, const char *reason,
const connection_t *conn, int dowarn);