↑ 1 #ifndef RHTTPD_H
↑ 2 #define RHTTPD_H
↑ 3
↑ 4 #if 1
↑ 5 # error "configure rhttpd.h and remove this line"
↑ 6 #endif
↑ 7
↑ 8 /*
↑ 9 *
↑10 * rhttpds configuration
↑11 *
↑12 */
↑13 #define RHTTPD_MODULE_BASE "/home/development/rhttpd/src/"
↑14
↑15 /* static wwwroot directory (later this is configuration/vhost based) */
↑16 #define RHTTPD_WWW_ROOT "/home/www/"
↑17
↑18 #define RHTTPD_HTDOCS "/htdocs"
↑19
↑20 #define RHTTPD_VERSION "0.3-beta2"
↑21
↑22 /* text string for server: header */
↑23 #define RHTTPD_SERVERNAME "rhttpd/" RHTTPD_VERSION
↑24
↑25 /* maximum keepalive connections (currently unused) */
↑26 #define RHTTPD_KEEPALIVE_MAX 5
↑27
↑28 /* read()/write() timeout for http clients */
↑29 #define RHTTPD_TIMEOUT 10
↑30
↑31 /* backlog value for listen() */
↑32 #define RHTTPD_BACKLOG 128
↑33
↑34 /* client read() buffer size for http requests/POST-data */
↑35 #define RHTTPD_CLIENT_BUFFER_SZ 10240
↑36
↑37
↑38 /* unused stat cache entries will be removed/free()'d every n-seconds
↑39 * the idea is to give sbrk() a chance to really free shrink the heap.
↑40 *
↑41 * this value maybe large (eg. 5 minutes)
↑42 *
↑43 */
↑44 #define RHTTPD_STAT_CACHE_FREE_INTERVAL (10)
↑45
↑46 /* cached not inotify'd // not existend files will be re-stat()'d every
↑47 * n-seconds()
↑48 *
↑49 *
↑50 * this values should be short or old stat informations are returned
↑51 * eg: wrong size / last-modified of a file
↑52 *
↑53 * */
↑54 #define RHTTPD_STAT_CACHE_TIMEOUT 5
↑55
↑56 /* cleanup handler (which removes timeeout'ed entries) is launched
↑57 * every N-seconds */
↑58 #define RHTTPD_STAT_CLEANUP_INTERVAL 5
↑59
↑60
↑61
↑62
↑63
↑64
↑65
↑66 /*
↑67 *
↑68 * debugging stuff
↑69 *
↑70 */
↑71
↑72 #if 0
↑73 # define RHTTPD_DUMP_RECIEVED_HEADER 1
↑74 #endif
↑75
↑76 /* dump what handler is called */
↑77 #if 0
↑78 # define RHTTPD_DUMP_HANDLER_CALL 1
↑79 #endif
↑80
↑81 #endif /* RHTTPD_H */
syntax highlighted by Code2HTML, v. 0.9.1