diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-06-22 12:27:27 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-09-07 15:01:52 -0400 |
commit | 1f4b6944c06fce5befc3b8a21d252ba946632f63 (patch) | |
tree | 102518e3d0007bd12bae27ddfe626c80ebd754d5 /src/or/router.h | |
parent | 41eef6680e814f453cc8eedff415e941429aa627 (diff) | |
download | tor-1f4b6944c06fce5befc3b8a21d252ba946632f63.tar.gz tor-1f4b6944c06fce5befc3b8a21d252ba946632f63.zip |
Upload descriptors more often when recent desc is unlisted
Right now we only force a new descriptor upload every 18 hours.
This can make servers become unlisted if they upload a descriptor at
time T which the authorities reject as being "too similar" to one
they uploaded before. Nothing will actually make the server upload a
new descriptor later on, until another 18 hours have passed.
This patch changes the upload behavior so that the 18 hour interval
applies only when we're listed in a live consensus with a descriptor
published within the last 18 hours. Otherwise--if we're not listed
in the live consensus, or if we're listed with a publication time
over 18 hours in the past--we upload a new descriptor every 90
minutes.
This is an attempted bugfix for #3327. If we merge it, it should
obsolete #535.
Diffstat (limited to 'src/or/router.h')
-rw-r--r-- | src/or/router.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.h b/src/or/router.h index f6d3c12333..af202e60c4 100644 --- a/src/or/router.h +++ b/src/or/router.h @@ -62,7 +62,7 @@ void consider_publishable_server(int force); int should_refuse_unknown_exits(const or_options_t *options); void router_upload_dir_desc_to_dirservers(int force); -void mark_my_descriptor_dirty_if_older_than(time_t when); +void mark_my_descriptor_dirty_if_too_old(time_t now); void mark_my_descriptor_dirty(const char *reason); void check_descriptor_bandwidth_changed(time_t now); void check_descriptor_ipaddress_changed(time_t now); |