Browse Source

Tighten accepted circwindow parameters

Based on discussion in bug 2317, these values seem to be sane.
Sebastian Hahn 13 years ago
parent
commit
0df51a7f39
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/or/or.h

+ 2 - 2
src/or/or.h

@@ -765,8 +765,8 @@ typedef enum {
 /** Initial value for both sides of a circuit transmission window when the
  * circuit is initialized.  Measured in cells. */
 #define CIRCWINDOW_START 1000
-#define CIRCWINDOW_START_MIN 1
-#define CIRCWINDOW_START_MAX 100000
+#define CIRCWINDOW_START_MIN 100
+#define CIRCWINDOW_START_MAX 1000
 /** Amount to increment a circuit window when we get a circuit SENDME. */
 #define CIRCWINDOW_INCREMENT 100
 /** Initial value on both sides of a stream transmission window when the