summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/networkstatus.c3
-rw-r--r--src/or/routerlist.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 0dfb8afcce..fe4b4562ff 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -147,6 +147,9 @@ networkstatus_reset_download_failures(void)
{
int i;
+ log_debug(LD_GENERAL,
+ "In networkstatus_reset_download_failures()");
+
for (i=0; i < N_CONSENSUS_FLAVORS; ++i)
download_status_reset(&consensus_dl_status[i]);
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index f87dbed145..d713fe4854 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4465,6 +4465,10 @@ void
routerlist_retry_directory_downloads(time_t now)
{
(void)now;
+
+ log_debug(LD_GENERAL,
+ "In routerlist_retry_directory_downloads()");
+
router_reset_status_download_failures();
router_reset_descriptor_download_failures();
reschedule_directory_downloads();
@@ -5277,6 +5281,9 @@ update_extrainfo_downloads(time_t now)
void
router_reset_descriptor_download_failures(void)
{
+ log_debug(LD_GENERAL,
+ "In router_reset_descriptor_download_failures()");
+
networkstatus_reset_download_failures();
last_descriptor_download_attempted = 0;
if (!routerlist)