Rev 15518 | Rev 15573 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15518 | Rev 15519 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | /* Limitations are essentially for security reasons: |
20 | /* Limitations are essentially for security reasons: |
21 | * to curb attacks by resource exhaustion of the server. |
21 | * to curb attacks by resource exhaustion of the server. |
22 | */ |
22 | */ |
23 | 23 | ||
24 | #include "wims.h" |
24 | #include "wims.h" |
- | 25 | /* variables shared with wimslog.c */ |
|
- | 26 | #include "commun.h" |
|
25 | 27 | ||
26 | /* maximal length of any module's variable definition file. */ |
28 | /* maximal length of any module's variable definition file. */ |
27 | int VAR_DEF_LENGTH_LIMIT=50000; |
29 | int VAR_DEF_LENGTH_LIMIT=50000; |
28 | /* Limit for frames in an animation. */ |
30 | /* Limit for frames in an animation. */ |
29 | int ANIM_LIMIT=400; |
31 | int ANIM_LIMIT=400; |
30 | /* module log file length */ |
- | |
31 | int MODULE_LOG_LIMIT=102400; |
- | |
32 | /* general log file length */ |
- | |
33 | int GEN_LOG_LIMIT=1024000; |
- | |
34 | /* number of old log files */ |
- | |
35 | int OLD_LOG_FILES=2; |
- | |
36 | /* number of days for log files */ |
- | |
37 | int LOG_DELETE=100; |
- | |
- | 32 | ||
- | 33 | ||
38 | /* Resource limits */ |
34 | /* Resource limits */ |
39 | int threshold1=150; /* First load threshold */ |
35 | int threshold1=150; /* First load threshold */ |
40 | int threshold2=300; /* Second load threshold */ |
36 | int threshold2=300; /* Second load threshold */ |
41 | int ispriority=0; /* whether the connection is from priority sites */ |
37 | int ispriority=0; /* whether the connection is from priority sites */ |
42 | - | ||
43 | /* sessions not accessed more than these seconds will be erased. */ |
- | |
44 | int idle_time=5400; |
- | |
45 | /* non-class sessions not accessed more than these seconds will be erased. */ |
- | |
46 | int idle_time2=2400; |
- | |
47 | /* first-time sessions not accessed more than these seconds will be erased. */ |
- | |
48 | int idle_time3=900; |
- | |
49 | 38 | ||
50 | int rafalvl=10; /* anti-rapidfire severity */ |
39 | int rafalvl=10; /* anti-rapidfire severity */ |
51 | 40 | ||
52 | /* Explanation: two real numbers a,b such as * |a+b|>|a-b|*compare_precision |
41 | /* Explanation: two real numbers a,b such as * |a+b|>|a-b|*compare_precision |
53 | * will be considered equal in !ifvalue comparisons. */ |
42 | * will be considered equal in !ifvalue comparisons. */ |