summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-01-15 19:39:27 +0100
committerSebastian Hahn <sebastian@torproject.org>2011-01-15 19:42:17 +0100
commit0df51a7f39599aa799fd91f12e13e404a490e603 (patch)
treebe4feadf43ea65edef605f90b7f945f761e9abbc
parentb06617c9481ff577e2f0fed4264c80a718f98c29 (diff)
downloadtor-0df51a7f39599aa799fd91f12e13e404a490e603.tar.gz
tor-0df51a7f39599aa799fd91f12e13e404a490e603.zip
Tighten accepted circwindow parameters
Based on discussion in bug 2317, these values seem to be sane.
-rw-r--r--src/or/or.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index acca61f7d3..22c8498b66 100644
--- a/src/or/or.h
+++ b/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