summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-09-11 13:56:35 +1000
committerNick Mathewson <nickm@torproject.org>2017-09-12 10:38:25 -0400
commit93a8ed3b83b5f20768562ca2aff4eba7aca667d8 (patch)
tree1d136ed005def091d9266d7985581c6fafe96180 /src/or/or.h
parent6370fb77c586e9ad68c7d1ecb95be36137cb9067 (diff)
downloadtor-93a8ed3b83b5f20768562ca2aff4eba7aca667d8.tar.gz
tor-93a8ed3b83b5f20768562ca2aff4eba7aca667d8.zip
Make clients wait to refresh bridges when they have a recent descriptor
But when clients are just starting, make them try each bridge a few times before giving up on it. These changes make the bridge download schedules more explicit: before 17750, they relied on undocumented behaviour and specific schedule entries. (And between 17750 and this fix, they were broken.) Fixes 23347, not in any released version of tor.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 5d55094a02..78b658a793 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -4314,6 +4314,10 @@ typedef struct {
* altered on testing networks. */
smartlist_t *TestingBridgeDownloadSchedule;
+ /** Schedule for when clients should download bridge descriptors when they
+ * have no running bridges. Only altered on testing networks. */
+ smartlist_t *TestingBridgeBootstrapDownloadSchedule;
+
/** When directory clients have only a few descriptors to request, they
* batch them until they have more, or until this amount of time has
* passed. Only altered on testing networks. */