aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-01-20 02:14:30 +0000
committerRoger Dingledine <arma@torproject.org>2004-01-20 02:14:30 +0000
commit585c2efe876909eef1296f71acdb9f8f6234b751 (patch)
treed3b5efaff2bc5fac4e43afbb42e39886857b1d3f /src/or/or.h
parentc12a6f58b5cbb293716e6928b54c0346b237db2a (diff)
downloadtor-585c2efe876909eef1296f71acdb9f8f6234b751.tar
tor-585c2efe876909eef1296f71acdb9f8f6234b751.tar.gz
add TOR_PERF macro options
svn:r1008
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index fff833bcd..53a938e0c 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -108,7 +108,11 @@
#define MAX_NICKNAME_LEN 32
#define MAX_DIR_SIZE 500000
+#ifdef TOR_PERF
+#define MAX_DNS_ENTRY_AGE (150*60)
+#else
#define MAX_DNS_ENTRY_AGE (15*60)
+#endif
#define CIRC_ID_TYPE_LOWER 0
#define CIRC_ID_TYPE_HIGHER 1
@@ -210,11 +214,17 @@
#define EDGE_AP CONN_TYPE_AP
#define CELL_DIRECTION(x) ((x) == EDGE_EXIT ? CELL_DIRECTION_IN : CELL_DIRECTION_OUT)
+#ifdef TOR_PERF
+#define CIRCWINDOW_START 10000
+#define CIRCWINDOW_INCREMENT 1000
+#define STREAMWINDOW_START 5000
+#define STREAMWINDOW_INCREMENT 500
+#else
#define CIRCWINDOW_START 1000
#define CIRCWINDOW_INCREMENT 100
-
#define STREAMWINDOW_START 500
#define STREAMWINDOW_INCREMENT 50
+#endif
/* cell commands */
#define CELL_PADDING 0