1 | $MAX_CONNECTS = 500; # 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 = 1_000_000; # size of a "small" file |
2 | |
5 | |
3 | $MAX_CONN_IP = 4; # maximum simult. connects per ip |
6 | $MAX_CONN_IP = 4; # maximum simult. connects per ip |
4 | $BLOCKTIME = 7200; # block time |
7 | $BLOCKTIME = 86400; # 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 |
|
|
13 | $PER_TIMEOUT = 120; # persistent connection timeout |
10 | |
14 | |
11 | $MAX_POOL = 20; # max. number of idle workers |
15 | $MAX_POOL = 20; # max. number of idle workers |
|
|
16 | |
|
|
17 | $DB_HOME = "db"; # database home directory |
12 | |
18 | |
13 | $DOCROOT = "/usr/www/htdocs"; # document root |
19 | $DOCROOT = "/usr/www/htdocs"; # document root |
14 | |
20 | |
15 | $SERVER_HOST = "0.0.0.0"; # host to bind on |
21 | $SERVER_HOST = "0.0.0.0"; # host to bind on |
16 | $SERVER_PORT = 80; # port to listen on |
22 | $SERVER_PORT = 80; # port to listen on |
17 | |
23 | |
18 | $CMDSHELL_PORT = 7262; # open a command shell on this port |
24 | $CMDSHELL_PORT = 7262; # open a command shell on this port |
19 | |
25 | |
20 | $BUFSIZE = 16*1024; # buffer size |
26 | $BUFSIZE = 256*1024; # buffer size |
21 | |
27 | |
22 | $AIO_PARALLEL = 1; # how many reader threads for i/o? |
28 | $AIO_PARALLEL = 1; # how many reader threads for i/o? |
|
|
29 | |
|
|
30 | $ACCESS_LOG = "logs/accesslog"; # access log |