diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-03-01 00:41:28 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-03-01 00:41:28 +0000 |
commit | 11d89141ac0ae0ff371e8da79abe218474e7365c (patch) | |
tree | d0b96ac98904459f404a1eaecd399416177316c9 | |
parent | dec9e4f0d8a3b0c482c4dde70f95815433436d73 (diff) | |
download | tor-11d89141ac0ae0ff371e8da79abe218474e7365c.tar tor-11d89141ac0ae0ff371e8da79abe218474e7365c.tar.gz |
r12012@catbus: nickm | 2007-02-28 18:25:18 -0500
Twiddle constants wrt uploading hidden service descriptors.
svn:r9694
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/or/config.c | 2 | ||||
-rw-r--r-- | src/or/rendservice.c | 4 |
3 files changed, 7 insertions, 3 deletions
@@ -13,6 +13,10 @@ Changes in version 0.1.2.9-??? - 2007-??-?? uptime and bandwidth cutoffs. - Stop listing hibernating servers in the v1 directory. + o Minor bugfixes (hidden services): + - Upload hidden service descriptors slightly less often, to reduce + load on authorities. + o Minor bugfixes (other): - Fix an assert that could trigger if a controller quickly set then cleared EntryNodes. (Bug found by Udo van den Heuvel.) diff --git a/src/or/config.c b/src/or/config.c index 56f4ed120..fa9f56e08 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2272,7 +2272,7 @@ validate_ports_csv(smartlist_t *sl, const char *name, char **msg) /** Lowest allowable value for RendPostPeriod; if this is too low, hidden * services can overload the directory system. */ -#define MIN_REND_POST_PERIOD (5*60) +#define MIN_REND_POST_PERIOD (10*60) /** Highest allowable value for RendPostPeriod. */ #define MAX_DIR_PERIOD (MIN_ONION_KEY_LIFETIME/2) diff --git a/src/or/rendservice.c b/src/or/rendservice.c index c9aa171b6..3b509a0e4 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1091,9 +1091,9 @@ rend_consider_services_upload(time_t now) } if (service->next_upload_time < now || (service->desc_is_dirty && - service->desc_is_dirty < now-5)) { + service->desc_is_dirty < now-30)) { /* if it's time, or if the directory servers have a wrong service - * descriptor and ours has been stable for 5 seconds, upload a + * descriptor and ours has been stable for 30 seconds, upload a * new one of each format. */ upload_service_descriptor(service, 0); service->next_upload_time = now + rendpostperiod; |