[or-cvs] crank up some of our constants, for better scalability

Roger Dingledine arma at seul.org
Wed Jun 2 19:44:44 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	directory.c or.h rendservice.c 
Log Message:
crank up some of our constants, for better scalability


Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/src/or/directory.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- directory.c	17 May 2004 20:31:01 -0000	1.106
+++ directory.c	2 Jun 2004 19:44:41 -0000	1.107
@@ -42,7 +42,7 @@
 /** 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 ************/

Index: or.h
===================================================================
RCS file: /home/or/cvsroot/src/or/or.h,v
retrieving revision 1.361
retrieving revision 1.362
diff -u -d -r1.361 -r1.362
--- or.h	1 Jun 2004 22:09:58 -0000	1.361
+++ or.h	2 Jun 2004 19:44:41 -0000	1.362
@@ -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

Index: rendservice.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendservice.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- rendservice.c	20 May 2004 19:12:28 -0000	1.71
+++ rendservice.c	2 Jun 2004 19:44:41 -0000	1.72
@@ -24,10 +24,10 @@
 #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 {



More information about the tor-commits mailing list