aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-05-20 15:59:08 -0400
committerNick Mathewson <nickm@torproject.org>2013-05-20 15:59:08 -0400
commitcb488f99730c795fddca6f841fa35ce5248ea3b2 (patch)
treeb3c66bf37cc899e03cea8d8bab62053dd6b2cee6
parent826daaf726ad06d812b67b3ce0b43fd7662c5e7d (diff)
parenta2e72ac04a5eabc17336fb55bd6b3a482448d3a8 (diff)
downloadtor-cb488f99730c795fddca6f841fa35ce5248ea3b2.tar
tor-cb488f99730c795fddca6f841fa35ce5248ea3b2.tar.gz
Merge remote-tracking branch 'origin/maint-0.2.4'
-rw-r--r--changes/bug79823
-rw-r--r--src/or/or.h35
2 files changed, 38 insertions, 0 deletions
diff --git a/changes/bug7982 b/changes/bug7982
new file mode 100644
index 000000000..46aa53249
--- /dev/null
+++ b/changes/bug7982
@@ -0,0 +1,3 @@
+ o Minor bugfixes:
+ - Copy-paste description for PathBias params from man page into or.h
+ comment. Fixes bug 7982.
diff --git a/src/or/or.h b/src/or/or.h
index 7b6c65fbb..2d55233d2 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -4000,6 +4000,27 @@ typedef struct {
/**
* Parameters for path-bias detection.
* @{
+ * These options override the default behavior of Tor's (**currently
+ * experimental**) path bias detection algorithm. To try to find broken or
+ * misbehaving guard nodes, Tor looks for nodes where more than a certain
+ * fraction of circuits through that guard fail to get built.
+ *
+ * The PathBiasCircThreshold option controls how many circuits we need to
+ * build through a guard before we make these checks. The
+ * PathBiasNoticeRate, PathBiasWarnRate and PathBiasExtremeRate options
+ * control what fraction of circuits must succeed through a guard so we
+ * won't write log messages. If less than PathBiasExtremeRate circuits
+ * succeed *and* PathBiasDropGuards is set to 1, we disable use of that
+ * guard.
+ *
+ * When we have seen more than PathBiasScaleThreshold circuits through a
+ * guard, we scale our observations by 0.5 (governed by the consensus) so
+ * that new observations don't get swamped by old ones.
+ *
+ * By default, or if a negative value is provided for one of these options,
+ * Tor uses reasonable defaults from the networkstatus consensus document.
+ * If no defaults are available there, these options default to 150, .70,
+ * .50, .30, 0, and 300 respectively.
*/
int PathBiasCircThreshold;
double PathBiasNoticeRate;
@@ -4012,6 +4033,20 @@ typedef struct {
/**
* Parameters for path-bias use detection
* @{
+ * Similar to the above options, these options override the default behavior
+ * of Tor's (**currently experimental**) path use bias detection algorithm.
+ *
+ * Where as the path bias parameters govern thresholds for successfully
+ * building circuits, these four path use bias parameters govern thresholds
+ * only for circuit usage. Circuits which receive no stream usage are not
+ * counted by this detection algorithm. A used circuit is considered
+ * successful if it is capable of carrying streams or otherwise receiving
+ * well-formed responses to RELAY cells.
+ *
+ * By default, or if a negative value is provided for one of these options,
+ * Tor uses reasonable defaults from the networkstatus consensus document.
+ * If no defaults are available there, these options default to 20, .80,
+ * .60, and 100, respectively.
*/
int PathBiasUseThreshold;
double PathBiasNoticeUseRate;