mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
crank up some of our constants, for better scalability
svn:r1938
This commit is contained in:
parent
4db9e9aa8a
commit
011ccbbf8d
@ -42,7 +42,7 @@ char rend_publish_string[] = "/rendezvous/publish";
|
|||||||
/** Prefix for downloading rendezvous descriptors. */
|
/** Prefix for downloading rendezvous descriptors. */
|
||||||
char rend_fetch_url[] = "/rendezvous/";
|
char rend_fetch_url[] = "/rendezvous/";
|
||||||
|
|
||||||
#define MAX_HEADERS_SIZE 10000
|
#define MAX_HEADERS_SIZE 50000
|
||||||
#define MAX_BODY_SIZE 500000
|
#define MAX_BODY_SIZE 500000
|
||||||
|
|
||||||
/********* END VARIABLES ************/
|
/********* END VARIABLES ************/
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#define WIN32_WINNT 0x400
|
#define WIN32_WINNT 0x400
|
||||||
#define _WIN32_WINNT 0x400
|
#define _WIN32_WINNT 0x400
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
/* Number of fds that select will accept; default is 64. */
|
|
||||||
#define FD_SETSIZE 512
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -118,7 +116,7 @@
|
|||||||
|
|
||||||
/** Upper bound on maximum simultaneous connections; can be lowered by
|
/** Upper bound on maximum simultaneous connections; can be lowered by
|
||||||
* config file. */
|
* config file. */
|
||||||
#define MAXCONNECTIONS 1000
|
#define MAXCONNECTIONS 10000
|
||||||
|
|
||||||
#define DEFAULT_BANDWIDTH_OP (1024 * 1000)
|
#define DEFAULT_BANDWIDTH_OP (1024 * 1000)
|
||||||
#define MAX_NICKNAME_LEN 19
|
#define MAX_NICKNAME_LEN 19
|
||||||
|
@ -24,10 +24,10 @@ typedef struct rend_service_port_config_t {
|
|||||||
#define NUM_INTRO_POINTS 3
|
#define NUM_INTRO_POINTS 3
|
||||||
|
|
||||||
/** If we can't build our intro circuits, don't retry for this long. */
|
/** 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
|
/** Don't try to build more than this many circuits before giving up
|
||||||
* for a while.*/
|
* 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. */
|
/** Represents a single hidden service running at this OP. */
|
||||||
typedef struct rend_service_t {
|
typedef struct rend_service_t {
|
||||||
|
Loading…
Reference in New Issue
Block a user