if we learn that a down entry guard is up, count our working entry

guards correctly when logging.


svn:r5791
This commit is contained in:
Roger Dingledine 2006-01-11 03:58:59 +00:00
parent eb78295e4e
commit 284fe9cad5

View File

@ -2014,12 +2014,12 @@ entry_guard_set_status(const char *digest, int succeeded)
changed = 1;
}
if (entry->down_since) {
entry->down_since = 0;
/*XXXX shouldn't be so loud. NM */
notice(LD_CIRC,
"Connection to formerly down entry guard '%s' succeeded. "
"%d/%d entry guards usable/new.", entry->nickname,
num_live_entry_guards(), smartlist_len(entry_guards));
entry->down_since = 0;
log_entry_guards(LOG_INFO);
changed = 1;
}