aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/connection_or.c
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/core/or/connection_or.c
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/core/or/connection_or.c')
-rw-r--r--src/core/or/connection_or.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/or/connection_or.c b/src/core/or/connection_or.c
index 08371d1ad7..e6b2354012 100644
--- a/src/core/or/connection_or.c
+++ b/src/core/or/connection_or.c
@@ -705,6 +705,7 @@ connection_or_finished_connecting(or_connection_t *or_conn)
log_debug(LD_HANDSHAKE,"OR connect() to router at %s:%u finished.",
conn->address,conn->port);
control_event_bootstrap(BOOTSTRAP_STATUS_HANDSHAKE, 0);
+ control_event_boot_first_orconn();
if (proxy_type != PROXY_NONE) {
/* start proxy handshake */