1 | $MAX_CONNECTS = 40; # maximum simult. connects |
1 | $MAX_CONNECTS = 1000; # maximum simult. connects |
|
|
2 | $MAX_TRANSFERS_SMALL = 10; # the maximum number of sim. file transfers |
|
|
3 | $MAX_TRANSFERS_LARGE = 15; # the maximum number of sim. file transfers |
|
|
4 | $TRANSFER_SMALL = 3_000_000; # size of a "small" file |
2 | |
5 | |
3 | $MAX_CONN_IP = 4000; # maximum simult. connects per ip |
6 | $MAX_CONN_IP = 4; # maximum simult. connects per ip |
4 | $BLOCKTIME = 7200; # block time |
7 | $BLOCKTIME = 60*60*2; # block time |
5 | |
8 | |
6 | $NO_SEGMENTED = 1; # allow segmented downloads? |
9 | $NO_SEGMENTED = 1; # allow segmented downloads? |
7 | |
10 | |
8 | $REQ_TIMEOUT = 60; # request timeout |
11 | $REQ_TIMEOUT = 60; # request timeout |
9 | $RES_TIMEOUT = 180; # response timeout |
12 | $RES_TIMEOUT = 180; # response timeout |
10 | $PER_TIMEOUT = 120; # persistent connection timeout |
13 | $PER_TIMEOUT = 120; # persistent connection timeout |
11 | |
14 | |
12 | $MAX_POOL = 3; # max. number of idle workers |
15 | $MAX_POOL = 20; # max. number of idle workers |
13 | |
16 | |
14 | $DB_HOME = "db"; # database home directory |
17 | $DB_HOME = "db"; # database home directory |
15 | |
18 | |
16 | $DOCROOT = "/usr/www/htdocs"; # document root |
19 | $DOCROOT = "/usr/www/htdocs"; # document root |
17 | |
20 | |
18 | $SERVER_HOST = "0.0.0.0"; # host to bind on |
21 | $SERVER_HOST = "0.0.0.0"; # host to bind on |
19 | $SERVER_PORT = 80; # port to listen on |
22 | $SERVER_PORT = 80; # port to listen on |
20 | |
23 | |
21 | $CMDSHELL_PORT = 7262; # open a command shell on this port |
24 | $CMDSHELL_PORT = 7262; # open a command shell on this port |
22 | |
25 | |
|
|
26 | $WAIT_INTERVAL = 60*5; |
|
|
27 | $WAIT_BUFSIZE = 512; |
|
|
28 | |
23 | $BUFSIZE = 16*1024; # buffer size |
29 | $BUFSIZE = 32*1024; # buffer size |
24 | |
30 | |
25 | $AIO_PARALLEL = 1; # how many reader threads for i/o? |
31 | $AIO_PARALLEL = 1; # how many reader threads for i/o? |
26 | |
32 | |
27 | $ACCESS_LOG = "logs/accesslog"; # access log |
33 | $ACCESS_LOG = "logs/accesslog"; # access log |