Browse Source

Increase the limit so leaky pipe might work

Nick Mathewson 12 years ago
parent
commit
c974582291
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/or/or.h

+ 3 - 2
src/or/or.h

@@ -824,11 +824,12 @@ typedef enum {
 
 
 /** Maximum number of queued cells on a circuit for which we are the
 /** 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
  * 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
  * ratio controls the margin of error between emitting a warning and
  * killing the circuit.
  * 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
 /** Ratio of hard (circuit kill) to soft (warning) thresholds for the
  * ORCIRC_MAX_MIDDLE_CELLS tests.
  * ORCIRC_MAX_MIDDLE_CELLS tests.
  */
  */