]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Increase the limit so leaky pipe might work
authorNick Mathewson <nickm@torproject.org>
Fri, 14 Jun 2013 05:40:35 +0000 (01:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 14 Jun 2013 05:40:35 +0000 (01:40 -0400)
src/or/or.h

index fbf6f52c754a9b91ee874bbc99a5e7ce973b8261..a0776f1de2da43e5e46228ca4dc3c9f45a2d74b3 100644 (file)
@@ -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.
  */