aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-06-02 19:44:41 +0000
committerRoger Dingledine <arma@torproject.org>2004-06-02 19:44:41 +0000
commit011ccbbf8d15f24849c9d7357f61142db8b9099e (patch)
tree83fbe4e4fd6ffa4f32c3c39a3b5cae0d9c992fae /src
parent4db9e9aa8ad1adb8f6b20e73c3831968c99b60c3 (diff)
downloadtor-011ccbbf8d15f24849c9d7357f61142db8b9099e.tar
tor-011ccbbf8d15f24849c9d7357f61142db8b9099e.tar.gz
crank up some of our constants, for better scalability
svn:r1938
Diffstat (limited to 'src')
-rw-r--r--src/or/directory.c2
-rw-r--r--src/or/or.h4
-rw-r--r--src/or/rendservice.c4
3 files changed, 4 insertions, 6 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 5d5a1fde5..2890736f1 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -42,7 +42,7 @@ char rend_publish_string[] = "/rendezvous/publish";
/** Prefix for downloading rendezvous descriptors. */
char rend_fetch_url[] = "/rendezvous/";
-#define MAX_HEADERS_SIZE 10000
+#define MAX_HEADERS_SIZE 50000
#define MAX_BODY_SIZE 500000
/********* END VARIABLES ************/
diff --git a/src/or/or.h b/src/or/or.h
index d1fd6e976..7548bf4e2 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -16,8 +16,6 @@
#define WIN32_WINNT 0x400
#define _WIN32_WINNT 0x400
#define WIN32_LEAN_AND_MEAN
-/* Number of fds that select will accept; default is 64. */
-#define FD_SETSIZE 512
#endif
#include <stdio.h>
@@ -118,7 +116,7 @@
/** Upper bound on maximum simultaneous connections; can be lowered by
* config file. */
-#define MAXCONNECTIONS 1000
+#define MAXCONNECTIONS 10000
#define DEFAULT_BANDWIDTH_OP (1024 * 1000)
#define MAX_NICKNAME_LEN 19
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 296f60876..d10d47c82 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -24,10 +24,10 @@ typedef struct rend_service_port_config_t {
#define NUM_INTRO_POINTS 3
/** If we can't build our intro circuits, don't retry for this long. */
-#define INTRO_CIRC_RETRY_PERIOD 60*15
+#define INTRO_CIRC_RETRY_PERIOD 60*10
/** Don't try to build more than this many circuits before giving up
* for a while.*/
-#define MAX_INTRO_CIRCS_PER_PERIOD 20
+#define MAX_INTRO_CIRCS_PER_PERIOD 10
/** Represents a single hidden service running at this OP. */
typedef struct rend_service_t {