1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
/* -*- Pike -*- 
 * $Id$ 
 * 
 * User configurable things not accessible from the normal 
 * administration interface. Not much, but there are some things..   
 */ 
 
 
#ifndef _ROXEN_CONFIG_H_ 
#define _ROXEN_CONFIG_H_ 
 
 
 
//  If you are running an MySQL older than 3.23.49 (which lacks a patch for 
//  a security hole in LOAD DATA LOCAL) you need to set this compatibility 
//  flag. 
// 
//  #define UNSAFE_MYSQL 
 
 
// Threads are assumed nowadays. We leave the define for third-party code 
// that still have two code paths. 
#define THREADS 
 
#define add_efun add_constant 
 
/* Reply 'PONG\r\n' to the query 'PING\r\n'. 
 * For performance tests... 
 */ 
#define SUPPORT_PING_METHOD 
 
/* Do we want module level deny/allow security (IP-numbers and usernames).  
 * 1% speed loss, as an average. (That is, if your CPU is used to the max. 
 * it probably isn't..)   
 */ 
#ifndef NO_MODULE_LEVEL_SECURITY 
# define MODULE_LEVEL_SECURITY 
#endif 
 
/* If this is disabled, the server won't parse the supports string. This might 
 * make the server somewhat faster. If you don't need this feature but need the 
 * most speed you can get, it might be a good idea to disable supports. 
 */ 
 
// #define DISABLE_SUPPORTS 
 
 
/* Define this if you don't want Roxen to use DNS. Note: This 
 * doesn't make the server itself faster. It only reduces the netload 
 * some. This option turns off ALL ip -> hostname and hostname -> ip 
 * conversion. Thus you can't use if if you want to run a proxy.  
 */ 
 
// #undef NO_DNS 
 
 
/* This option turns of all ip->hostname lookups. However the 
 * hostname->ip lookups are still functional. This _is_ usable 
 * if you run a proxy.. :-) 
 */ 
 
// #undef NO_REVERSE_LOOKUP 
 
 
/* Should we use sete?id instead of set?id?. 
 * There _might_ be security problems with the sete?id functions. 
 */ 
#define SET_EFFECTIVE  
 
#define URL_MODULES 
 
/* Define this to change the main RAM cache retention policy 
 * to be based on the time it took to generate the entry and 
 * the number of hits it has received. 
 */ 
// #define TIME_BASED_CACHE 
 
/* The namespace prefix for RXML. 
 */ 
#define RXML_NAMESPACE "rxml" 
 
/* Define this to keep support for old (pre-2.0) RXML. 
 */ 
#define OLD_RXML_COMPAT 
 
/* Define this to enable the RoxenConfig cooke */ 
#define OLD_RXML_CONFIG 
 
// Define to get verbose backtraces in the debug log for each RXML 
// error. As opposed to the normal reports of RXML errors, they will 
// include the Pike backtraces too. 
//#define VERBOSE_RXML_ERRORS 
 
// Define back to which Roxen version you would like to keep  
// compatibility. 
#define ROXEN_COMPAT 1.3 
 
 
//  Cache timeout for RAM cache 
#ifndef INITIAL_CACHEABLE 
# define INITIAL_CACHEABLE 300 
#endif 
 
#ifndef HTTP_BLOCKING_SIZE_THRESHOLD 
// Size at below which blocking writes may be performed without penalty. 
// Should correspond to the network buffer size (usually 4KB or 1500 bytes). 
// Set to zero or negative to always use nonblocking I/O. 
#define HTTP_BLOCKING_SIZE_THRESHOLD  1000 
#endif /* !HTTP_BLOCKING_SIZE_THRESHOLD */ 
 
/*---------------- End of configurable options. */ 
#endif /* if _ROXEN_CONFIG_H_ */