summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-09-30 00:43:40 +0000
committerRoger Dingledine <arma@torproject.org>2005-09-30 00:43:40 +0000
commit609af664ac5e68b4641ef25d05ab992e60f72b25 (patch)
tree513b6aa9eb0ecae768d19a42e5e99b27c22ae924 /src/or/router.c
parenta1bfc132bf53f938e08d7bf8bb70486b860d5ddd (diff)
downloadtor-609af664ac5e68b4641ef25d05ab992e60f72b25.tar.gz
tor-609af664ac5e68b4641ef25d05ab992e60f72b25.zip
resolve a docdoc
svn:r5157
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 8a741f5952..29803b2c91 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -432,7 +432,17 @@ decide_to_advertise_dirport(or_options_t *options, routerinfo_t *router)
return router->dir_port;
}
-/**DOCDOC*/
+/** Some time has passed, or we just got new directory information.
+ * See if we currently believe our ORPort or DirPort to be
+ * unreachable. If so, launch a new test for it.
+ *
+ * For ORPort, we simply try making a circuit that ends at ourselves.
+ * Success is noticed in onionskin_answer().
+ *
+ * For DirPort, we make a connection via Tor to our DirPort and ask
+ * for our own server descriptor.
+ * Success is noticed in connection_dir_client_reached_eof().
+ */
void
consider_testing_reachability(void)
{