aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-06-14 01:40:35 -0400
committerNick Mathewson <nickm@torproject.org>2013-06-14 01:40:35 -0400
commitc9745822913e00a8664d68f62009fde231eff2aa (patch)
treeff228dd69607bbfa55ba281753fb1da630f3f960 /src/or/or.h
parent459aada4d0e2ca1c4538fb6f4ef4e275ae162600 (diff)
downloadtor-c9745822913e00a8664d68f62009fde231eff2aa.tar
tor-c9745822913e00a8664d68f62009fde231eff2aa.tar.gz
Increase the limit so leaky pipe might work
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index fbf6f52c7..a0776f1de 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -824,11 +824,12 @@ typedef enum {
/** Maximum number of queued cells on a circuit for which we are the
* midpoint before we give up and kill it. This must be >= circwindow
- * to avoid killing innocent circuits. The ORCIRC_MAX_MIDDLE_KILL_THRESH
+ * to avoid killing innocent circuits, and >= circwindow*2 to give
+ * leaky-pipe a chance of working someday. The ORCIRC_MAX_MIDDLE_KILL_THRESH
* ratio controls the margin of error between emitting a warning and
* killing the circuit.
*/
-#define ORCIRC_MAX_MIDDLE_CELLS CIRCWINDOW_START_MAX
+#define ORCIRC_MAX_MIDDLE_CELLS (CIRCWINDOW_START_MAX*2)
/** Ratio of hard (circuit kill) to soft (warning) thresholds for the
* ORCIRC_MAX_MIDDLE_CELLS tests.
*/