diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-28 18:37:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-28 18:37:52 +0000 |
commit | 11d330be5e8c0cdb41784673699f18f9d206d4d4 (patch) | |
tree | 61b98bc262f16b20150305dc9d0ef75de25386b7 /src/or/or.h | |
parent | 36bbab2f2bd8fe8902f4852c240a09de13419325 (diff) | |
download | tor-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/or.h')
-rw-r--r-- | src/or/or.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 38f0e553e..4f2aee9c4 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1249,7 +1249,7 @@ int connection_is_writing(connection_t *conn); void connection_stop_writing(connection_t *conn); void connection_start_writing(connection_t *conn); -void directory_has_arrived(void); +void directory_has_arrived(time_t now); int authdir_mode(void); int clique_mode(void); int server_mode(void); @@ -1454,6 +1454,7 @@ routerinfo_t *router_get_by_hexdigest(const char *hexdigest); routerinfo_t *router_get_by_digest(const char *digest); int router_digest_is_trusted_dir(const char *digest); void router_get_routerlist(routerlist_t **prouterlist); +time_t routerlist_get_published_time(void); void routerlist_free(routerlist_t *routerlist); void routerinfo_free(routerinfo_t *router); routerinfo_t *routerinfo_copy(const routerinfo_t *router); |