Browse Source

man page entries for TunnelDirConns and PreferTunneledDirConns
and add a todo item for nick in case he gets bored :)


svn:r9260

Roger Dingledine 18 years ago
parent
commit
50f0e36094
6 changed files with 26 additions and 21 deletions
  1. 1 3
      ChangeLog
  2. 7 12
      doc/TODO
  3. 8 3
      doc/tor.1.in
  4. 5 2
      src/or/config.c
  5. 1 1
      src/or/connection_edge.c
  6. 4 0
      src/or/dirserv.c

+ 1 - 3
ChangeLog

@@ -35,8 +35,6 @@ Changes in version 0.1.2.5-alpha - 2007-01-03
       options files.
       options files.
     - Reject *:563 (NTTPS) in the default exit policy. We already reject
     - Reject *:563 (NTTPS) in the default exit policy. We already reject
       NNTP by default, so this seems like a sensible addition.
       NNTP by default, so this seems like a sensible addition.
-    - Authorities do not recommend exits as guards if this would shift
-      excess load to the exit nodes.
     - Avoid some inadvertent info leaks by making clients reject hostnames
     - Avoid some inadvertent info leaks by making clients reject hostnames
       with invalid characters. Add an option "AllowNonRFC953Hostnames"
       with invalid characters. Add an option "AllowNonRFC953Hostnames"
       to disable this behavior, in case somebody is running a private
       to disable this behavior, in case somebody is running a private
@@ -44,7 +42,7 @@ Changes in version 0.1.2.5-alpha - 2007-01-03
     - Add a new address-spec.txt document to describe our special-case
     - Add a new address-spec.txt document to describe our special-case
       addresses: .exit, .onion, and .noconnnect.
       addresses: .exit, .onion, and .noconnnect.
     - Add a maintainer script to tell us which options are missing
     - Add a maintainer script to tell us which options are missing
-      documentation.
+      documentation: "make check-docs".
     - Remove some options that have been deprecated since at least 0.1.0.x:
     - Remove some options that have been deprecated since at least 0.1.0.x:
       AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and SysLog.  Use
       AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and SysLog.  Use
       AccountingMax instead of AccountingMaxKB; use Log to set log options.
       AccountingMax instead of AccountingMaxKB; use Log to set log options.

+ 7 - 12
doc/TODO

@@ -59,18 +59,13 @@ R     - handle connect-dir streams that don't have a chosen_exit_name set.
         o Implement
         o Implement
 R       - Hunt for places that change networkstatus info that I might have
 R       - Hunt for places that change networkstatus info that I might have
           missed.
           missed.
-R     . option to dl directory info via tor
+
-        o Make an option like __AllDirActionsPrivate that falls back to
+  . option to dl directory info via tor:
-          non-Tor DL when not enough info present.  (TunnelDirConns).
+    TunnelDirConns and PreferTunneledDirConns
-        - Set default to 0 before release candidate.
+R   - actually cause the directory.c functions to know about or_port
-        o Think harder about whether TunnelDirConns should be on
+      and use it when we're supposed to.
-          by default. No, they shouldn't, until we have much more of
+N   - for tunneled edge conns, stop reading to the bridge connection
-          blocking.pdf implemented.
+      when the or_conn we're writing to has a full outbuf.
-        o Handle case where we have no descriptors and so don't know who can
-          handle BEGIN_DIR.
-        - actually cause the directory.c functions to know about or_port
-          and use it when we're supposed to.
-        - man page items for TunnelDirConns and PreferTunneledDirConns
 
 
 N - DNS improvements
 N - DNS improvements
     . Asynchronous DNS
     . Asynchronous DNS

+ 8 - 3
doc/tor.1.in

@@ -242,9 +242,14 @@ a limited number of writes.  (Default: 0)
 .LP
 .LP
 .TP
 .TP
 \fBTunnelDirConns \fR\fB0|\fR\fB1\fP
 \fBTunnelDirConns \fR\fB0|\fR\fB1\fP
-If non-zero, try to have all directory info downloaded with encrypted
+If non-zero, when a directory server we contact supports it, we will
-connections.  (Default: 1)
+build a one-hop circuit and make an encrypted connection via its
-
+ORPort. (Default: 0)
+.LP
+.TP
+\fBPreferTunneledDirConns \fR\fB0|\fR\fB1\fP
+If non-zero, we will avoid directory servers that don't support tunneled
+directory connections, when possible. (Default: 0)
 
 
 .SH CLIENT OPTIONS
 .SH CLIENT OPTIONS
 .PP
 .PP

+ 5 - 2
src/or/config.c

@@ -347,6 +347,8 @@ static config_var_description_t options_description[] = {
     "provided IP address (only useful for multiple network interfaces)." },
     "provided IP address (only useful for multiple network interfaces)." },
   { "PIDFile", "On startup, write our PID to this file. On clean shutdown, "
   { "PIDFile", "On startup, write our PID to this file. On clean shutdown, "
     "remove the file." },
     "remove the file." },
+  { "PreferTunneledDirConns", "If non-zero, avoid directory servers that "
+    "don't support tunneled conncetions." },
   /* PreferTunneledDirConns */
   /* PreferTunneledDirConns */
   /* ProtocolWarnings */
   /* ProtocolWarnings */
   /* RephistTrackTime */
   /* RephistTrackTime */
@@ -354,8 +356,9 @@ static config_var_description_t options_description[] = {
     "started.  Unix only." },
     "started.  Unix only." },
   { "SafeLogging", "If set to 0, Tor logs potentially sensitive strings "
   { "SafeLogging", "If set to 0, Tor logs potentially sensitive strings "
     "rather than replacing them with the string [scrubbed]." },
     "rather than replacing them with the string [scrubbed]." },
-  { "TunnelDirConns", "If non-zero, try to have all directory info downloaded "
+  { "TunnelDirConns", "If non-zero, when a directory server we contact "
-    "via encrypted connections." },
+    "supports it, we will build a one-hop circuit and make an encrypted "
+    "connection via its ORPort." },
   { "User", "On startup, setuid to this user" },
   { "User", "On startup, setuid to this user" },
 
 
   /* ==== client options */
   /* ==== client options */

+ 1 - 1
src/or/connection_edge.c

@@ -322,7 +322,7 @@ connection_edge_finished_connecting(edge_connection_t *edge_conn)
 /** Define a schedule for how long to wait between retrying
 /** Define a schedule for how long to wait between retrying
  * application connections. Rather than waiting a fixed amount of
  * application connections. Rather than waiting a fixed amount of
  * time between each retry, we wait 10 seconds each for the first
  * time between each retry, we wait 10 seconds each for the first
- *  two tries, and 15 seconds for each retry after
+ * two tries, and 15 seconds for each retry after
  * that. Hopefully this will improve the expected user experience. */
  * that. Hopefully this will improve the expected user experience. */
 static int
 static int
 compute_socks_timeout(edge_connection_t *conn)
 compute_socks_timeout(edge_connection_t *conn)

+ 4 - 0
src/or/dirserv.c

@@ -1364,6 +1364,10 @@ dirserv_compute_performance_thresholds(routerlist_t *rl)
        * counting exit bandwidth. */
        * counting exit bandwidth. */
       /* Also, we might want to document the one-third behavior in
       /* Also, we might want to document the one-third behavior in
        * dir-spec.txt. */
        * dir-spec.txt. */
+/* ChangeLog line when we reenable it:
+    - Authorities do not recommend exits as guards if this would shift
+      excess load to the exit nodes.
+*/
       smartlist_add(bandwidths, bw);
       smartlist_add(bandwidths, bw);
     }
     }
   });
   });