diff options
author | Roger Dingledine <arma@torproject.org> | 2005-01-07 15:57:57 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-01-07 15:57:57 +0000 |
commit | f468ff04eaebba7c761f62b2b96b03a3add95454 (patch) | |
tree | e08df9ad6c1ce186b1eeec91379a2925c2106b73 /src/or/directory.c | |
parent | 31227f0292775ad30743a6149145db876e0e172c (diff) | |
download | tor-f468ff04eaebba7c761f62b2b96b03a3add95454.tar tor-f468ff04eaebba7c761f62b2b96b03a3add95454.tar.gz |
when we haven't fetched a directory yet, or the last time we
tried they were all unreachable, assume we are not connected to
the network.
when an application request comes in during this state, be
optimistic and assume we just reconnected. fetch a new directory
and if it works, begin making circuits.
svn:r3327
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 696e11348..c6ec9a58b 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -184,7 +184,8 @@ directory_get_from_dirserver(uint8_t purpose, const char *resource, else if (ds) directory_initiate_command_trusted_dir(ds, purpose, resource, NULL, 0); else { - log_fn(LOG_WARN,"No running dirservers known. Not trying. (purpose %d)", purpose); + log_fn(LOG_NOTICE,"No running dirservers known. Not trying. (purpose %d)", purpose); + directory_all_unreachable(time(NULL)); /* remember we tried them all and failed. */ } } |