diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-05 05:03:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-05 05:03:52 +0000 |
commit | 370e4abdc976cfd57c09f8e77549cb181371b4fe (patch) | |
tree | 7354ae3b9d6dbb251aebeae1963a866dff7784d0 /src/or/circuituse.c | |
parent | adf04f121e17b4eef14a2e66b8bc960cb66fa828 (diff) | |
download | tor-370e4abdc976cfd57c09f8e77549cb181371b4fe.tar.gz tor-370e4abdc976cfd57c09f8e77549cb181371b4fe.zip |
replace former relaunches of directory downloads with reset of failure count and relaunch of status downloads. Fix memory leak in trusted_dir_server_t. Reset "last download attempted" time when resetting failure counts.
svn:r5195
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r-- | src/or/circuituse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 664f3ac8c4..69723d64cc 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -870,6 +870,10 @@ circuit_get_open_circ_or_launch(connection_t *conn, if (!has_fetched_directory) { if (!connection_get_by_type(CONN_TYPE_DIR)) { log(LOG_NOTICE,"Application request when we're believed to be offline. Optimistically trying again."); + router_reset_status_download_failures(); + router_reset_descriptor_download_failures(); + update_networkstatus_downloads(time(NULL)); + /* XXXX011 NM This should be a generic "retry all directory fetches". */ directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1); /*XXXX011NM*/ } |