1 | $MAX_CONNECTS = 100; # maximum simult. connects |
1 | $MAX_CONNECTS = 100; # maximum simult. connects |
2 | $MAX_TRANSFERS_SMALL = 1; # the maximum number of sim. file transfers |
2 | $MAX_TRANSFERS = 10; # the maximum number of sim. file transfers |
3 | $MAX_TRANSFERS_LARGE = 1; # the maximum number of sim. file transfers |
|
|
4 | $TRANSFER_SMALL = 1_000_000; # size of a "small" file |
|
|
5 | |
3 | |
6 | $MAX_TRANSFERS_IP = 4; # maximum simult. connects per ip |
4 | $MAX_TRANSFERS_IP = 4; # maximum simult. connects per ip |
7 | $BLOCKTIME = 60*60*2; # block time |
5 | $BLOCKTIME = 60*60*2; # block time |
8 | |
6 | |
9 | $NO_SEGMENTED = 0; # 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 | |
… | |
… | |
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 = 88; # 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 | |
26 | $WAIT_INTERVAL = 1; # check for free slot this often |
24 | $WAIT_INTERVAL = 60*5; # check for free slot this often |
27 | $WAIT_BUFSIZE = 5; # send this much data while waiting |
25 | $WAIT_BUFSIZE = 512; # send this much data while waiting |
28 | |
26 | |
29 | $BUFSIZE = 32*1024; # buffer size |
27 | $BUFSIZE = 32*1024; # buffer size |
|
|
28 | |
|
|
29 | $TBF_RATE = 100000000; |
30 | |
30 | |
31 | $AIO_PARALLEL = 1; # how many reader threads for i/o? |
31 | $AIO_PARALLEL = 1; # how many reader threads for i/o? |
32 | |
32 | |
33 | $ACCESS_LOG = "logs/accesslog"; # access log |
33 | $ACCESS_LOG = "logs/accesslog"; # access log |
34 | $ERROR_LOG = "logs/errorlog"; # access log |
34 | $ERROR_LOG = "logs/errorlog"; # error log |
35 | |
35 | |