diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-12-23 14:25:37 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-12-23 14:25:37 -0500 |
commit | f9ba0b76cd5b447b86efa87eb115d12d6f0be2e7 (patch) | |
tree | bac54f1a900879e11c417bbe759a6c77cfb2cad0 /src/or/router.c | |
parent | d7776315df8ec12a496127a5d5c3c9fcbec9c092 (diff) | |
parent | 8a8797f1e45e6124ac93e3a8fb277b5758d7c935 (diff) | |
download | tor-f9ba0b76cd5b447b86efa87eb115d12d6f0be2e7.tar.gz tor-f9ba0b76cd5b447b86efa87eb115d12d6f0be2e7.zip |
Merge remote-tracking branch 'teor/bug13718-consensus-interval'
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index 7119a29d68..f6b2250a47 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1223,6 +1223,11 @@ router_orport_found_reachable(void) " Publishing server descriptor." : ""); can_reach_or_port = 1; mark_my_descriptor_dirty("ORPort found reachable"); + /* This is a significant enough change to upload immediately, + * at least in a test network */ + if (get_options()->TestingTorNetwork == 1) { + reschedule_descriptor_update_check(); + } control_event_server_status(LOG_NOTICE, "REACHABILITY_SUCCEEDED ORADDRESS=%s:%d", address, me->or_port); @@ -1240,8 +1245,14 @@ router_dirport_found_reachable(void) log_notice(LD_DIRSERV,"Self-testing indicates your DirPort is reachable " "from the outside. Excellent."); can_reach_dir_port = 1; - if (decide_to_advertise_dirport(get_options(), me->dir_port)) + if (decide_to_advertise_dirport(get_options(), me->dir_port)) { mark_my_descriptor_dirty("DirPort found reachable"); + /* This is a significant enough change to upload immediately, + * at least in a test network */ + if (get_options()->TestingTorNetwork == 1) { + reschedule_descriptor_update_check(); + } + } control_event_server_status(LOG_NOTICE, "REACHABILITY_SUCCEEDED DIRADDRESS=%s:%d", address, me->dir_port); |