aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-24 01:50:33 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-24 01:50:33 +0000
commitef4ac65f5e1d6223881ba952702b001e0be849b4 (patch)
treea4ffea1348fa00612eb0c8589ee5b9dff3a373d7
parent0df2d383d140abd43233daaf96d6ad735fc9aeb3 (diff)
downloadtor-ef4ac65f5e1d6223881ba952702b001e0be849b4.tar
tor-ef4ac65f5e1d6223881ba952702b001e0be849b4.tar.gz
Document the swiss-army-knife that retry_listeners has become
svn:r2584
-rw-r--r--src/or/connection.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index f90b07f20..0c45b7fb2 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -552,6 +552,17 @@ static void listener_close_if_present(int type) {
}
}
+/**
+ * Launch any configured listener connections of type <b>type</b>. (A
+ * listener is configured if <b>port_option</b> is non-zero. If any
+ * BindAddress configuration options are given in <b>cfg</b>, create a
+ * connection binding to each one. Otherwise, create a single
+ * connection binding to the address <b>default_addr</b>.)
+ *
+ * If <b>force</b> is true, close and re-open all listener connections.
+ * Otherwise, only relaunch the listeners of this type if the number of
+ * existing connections is not as configured (e.g., because one died).
+ */
static int retry_listeners(int type, struct config_line_t *cfg,
int port_option, const char *default_addr,
int force)