1 | $MAX_CONNECTS = 100; # maximum simult. connects |
1 | $MAX_CONNECTS = 100; # maximum simult. connects |
2 | $MAX_TRANSFERS_SMALL = 3; # the maximum number of sim. file transfers |
2 | $MAX_TRANSFERS = 10; # the maximum number of sim. file transfers |
3 | $MAX_TRANSFERS_LARGE = 5; # the maximum number of sim. file transfers |
|
|
4 | $TRANSFER_SMALL = 1_000_000; # size of a "small" file |
|
|
5 | |
3 | |
6 | $MAX_CONN_IP = 1; # maximum simult. connects per ip |
4 | $MAX_TRANSFERS_IP = 4; # maximum simult. connects per ip |
7 | $BLOCKTIME = 86400; # block time |
5 | $BLOCKTIME = 60*60*2; # block time |
8 | |
6 | |
9 | $NO_SEGMENTED = 1; # allow segmented downloads? |
7 | $NO_SEGMENTED = 0; # disallow segmented downloads? |
10 | |
8 | |
11 | $REQ_TIMEOUT = 60; # request timeout |
9 | $REQ_TIMEOUT = 60; # request timeout |
12 | $RES_TIMEOUT = 180; # response timeout |
10 | $RES_TIMEOUT = 180; # response timeout |
13 | $PER_TIMEOUT = 120; # persistent connection timeout |
11 | $PER_TIMEOUT = 120; # persistent connection timeout |
14 | |
12 | |
… | |
… | |
17 | $DB_HOME = "db"; # database home directory |
15 | $DB_HOME = "db"; # database home directory |
18 | |
16 | |
19 | $DOCROOT = "/usr/www/htdocs"; # document root |
17 | $DOCROOT = "/usr/www/htdocs"; # document root |
20 | |
18 | |
21 | $SERVER_HOST = "0.0.0.0"; # host to bind on |
19 | $SERVER_HOST = "0.0.0.0"; # host to bind on |
22 | $SERVER_PORT = 80; # port to listen on |
20 | $SERVER_PORT = 88; # port to listen on |
23 | |
21 | |
24 | $CMDSHELL_PORT = 7262; # open a command shell on this port |
22 | $CMDSHELL_PORT = 7262; # open a command shell on this port |
25 | |
23 | |
|
|
24 | $WAIT_INTERVAL = 60*5; # check for free slot this often |
|
|
25 | $WAIT_BUFSIZE = 512; # send this much data while waiting |
|
|
26 | |
26 | $BUFSIZE = 256*1024; # buffer size |
27 | $BUFSIZE = 32*1024; # buffer size |
|
|
28 | |
|
|
29 | $TBF_RATE = 100000000; |
27 | |
30 | |
28 | $AIO_PARALLEL = 1; # how many reader threads for i/o? |
31 | $AIO_PARALLEL = 1; # how many reader threads for i/o? |
29 | |
32 | |
30 | $ACCESS_LOG = "logs/accesslog"; # access log |
33 | $ACCESS_LOG = "logs/accesslog"; # access log |
|
|
34 | $ERROR_LOG = "logs/errorlog"; # error log |
|
|
35 | |