[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Document the swiss-army-knife that retry_listeners has become
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Document the swiss-army-knife that retry_listeners has become
- From: nickm@seul.org (Nick Mathewson)
- Date: Sat, 23 Oct 2004 21:50:35 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sat, 23 Oct 2004 21:50:59 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv15087/src/or
Modified Files:
connection.c
Log Message:
Document the swiss-army-knife that retry_listeners has become
Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection.c,v
retrieving revision 1.269
retrieving revision 1.270
diff -u -d -r1.269 -r1.270
--- connection.c 24 Oct 2004 01:29:01 -0000 1.269
+++ connection.c 24 Oct 2004 01:50:33 -0000 1.270
@@ -552,6 +552,17 @@
}
}
+/**
+ * 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)