parent
9df8eec60e
commit
47f011cac8
|
@ -11,6 +11,8 @@ Changes in version 0.1.2.19 - 2007-??-??
|
|||
buckets to become negative. Fixes Bug 544.
|
||||
- Fix a memory leak on exit relays; we were leaking a cached_resolve_t
|
||||
on every successful resolve. Reported by Mike Perry.
|
||||
- Purge old entries from the "rephist" database and the hidden
|
||||
service descriptor database even when DirPort is zero.
|
||||
|
||||
o Minor bugfixes:
|
||||
- Changing the ExitPolicyRejectPrivate setting should cause us to
|
||||
|
|
|
@ -747,6 +747,8 @@ run_scheduled_events(time_t now)
|
|||
static time_t time_to_try_getting_descriptors = 0;
|
||||
static time_t time_to_reset_descriptor_failures = 0;
|
||||
static time_t time_to_add_entropy = 0;
|
||||
#define CLEAN_CACHES_INTERVAL (30*60)
|
||||
static time_t time_to_clean_caches = 0;
|
||||
or_options_t *options = get_options();
|
||||
int i;
|
||||
int have_dir_info;
|
||||
|
@ -854,12 +856,14 @@ run_scheduled_events(time_t now)
|
|||
/** How often do we (as a cache) fetch a new V1 runningrouters document? */
|
||||
#define V1_RUNNINGROUTERS_FETCH_PERIOD (30*60)
|
||||
time_to_fetch_running_routers = now + V1_RUNNINGROUTERS_FETCH_PERIOD;
|
||||
}
|
||||
|
||||
/* Also, take this chance to remove old information from rephist
|
||||
* and the rend cache. */
|
||||
/* Remove old information from rephist and the rend cache. */
|
||||
if (time_to_clean_caches < now) {
|
||||
rep_history_clean(now - options->RephistTrackTime);
|
||||
rend_cache_clean();
|
||||
}
|
||||
time_to_clean_caches = now + CLEAN_CACHES_INTERVAL;
|
||||
}
|
||||
|
||||
/* 2b. Once per minute, regenerate and upload the descriptor if the old
|
||||
* one is inaccurate. */
|
||||
|
|
Loading…
Reference in New Issue