diff options
author | Roger Dingledine <arma@torproject.org> | 2011-05-19 23:36:20 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2011-05-19 23:59:52 -0400 |
commit | b8ffb00cf1ddf4ff1b64335f8677d600a948fffc (patch) | |
tree | c771b614ca8d2ddfff01fe7f489aa3037f94a9db /src/or/dns.c | |
parent | c13fb7feb1ee9d97a0ccbdae880b90a73efcc07c (diff) | |
download | tor-b8ffb00cf1ddf4ff1b64335f8677d600a948fffc.tar.gz tor-b8ffb00cf1ddf4ff1b64335f8677d600a948fffc.zip |
log the reason for publishing a new relay descriptor
now we have a better chance of hunting down the root cause of bug 1810.
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 61c8f32c98..9b6b98afaf 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1295,14 +1295,17 @@ configure_nameservers(int force) nameservers_configured = 1; if (nameserver_config_failed) { nameserver_config_failed = 0; - mark_my_descriptor_dirty(); + /* XXX the three calls to republish the descriptor might be producing + * descriptors that are only cosmetically different, especially on + * non-exit relays! -RD */ + mark_my_descriptor_dirty("dns resolvers back"); } return 0; err: nameservers_configured = 0; if (! nameserver_config_failed) { nameserver_config_failed = 1; - mark_my_descriptor_dirty(); + mark_my_descriptor_dirty("dns resolvers failed"); } return -1; } @@ -1522,7 +1525,7 @@ add_wildcarded_test_address(const char *address) "broken.", address, n); if (!dns_is_completely_invalid) { dns_is_completely_invalid = 1; - mark_my_descriptor_dirty(); + mark_my_descriptor_dirty("dns hijacking confirmed"); } if (!dns_wildcarded_test_address_notice_given) control_event_server_status(LOG_WARN, "DNS_USELESS"); |