aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-28 18:37:52 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-28 18:37:52 +0000
commit11d330be5e8c0cdb41784673699f18f9d206d4d4 (patch)
tree61b98bc262f16b20150305dc9d0ef75de25386b7 /src/or/directory.c
parent36bbab2f2bd8fe8902f4852c240a09de13419325 (diff)
downloadtor-11d330be5e8c0cdb41784673699f18f9d206d4d4.tar
tor-11d330be5e8c0cdb41784673699f18f9d206d4d4.tar.gz
Tweaks to prevent obsolete restarting tors from hammering the dirservers. (1) Cache a received directory as soon as the signature checks out. (2) Treat a cached directory as "recent" based on its mtime. (3) If we have a recent directory, we dont need to fetch a newer one for DirFetchPostPeriod. This needs review!
svn:r2618
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 038e4865b..998e3539b 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -585,7 +585,7 @@ connection_dir_client_reached_eof(connection_t *conn)
} else {
log_fn(LOG_INFO,"updated routers.");
}
- directory_has_arrived(); /* do things we've been waiting to do */
+ directory_has_arrived(time(NULL)); /* do things we've been waiting to do */
}
if(conn->purpose == DIR_PURPOSE_FETCH_RUNNING_LIST) {