1 #ifndef _LIGHTTPD_SETTINGS_H_
2 #define _LIGHTTPD_SETTINGS_H_
6 # define LI_NORETURN __attribute__((noreturn))
11 #define UNUSED(x) ( (void)(x) )
13 #define BV(x) (1 << x)
15 #define INET_NTOP_CACHE_MAX 4
16 #define FILE_CACHE_MAX 16
19 * max size of a buffer which will just be reset
20 * to ->used = 0 instead of really freeing the buffer
22 * 64kB (no real reason, just a guess)
24 #define BUFFER_MAX_REUSE_SIZE (4 * 1024)
26 /* both should be way smaller than SSIZE_MAX :) */
27 #define MAX_READ_LIMIT (256*1024)
28 #define MAX_WRITE_LIMIT (256*1024)
31 * max size of the HTTP request header
33 * 32k should be enough for everything (just a guess)
36 #define MAX_HTTP_REQUEST_HEADER (32 * 1024)
38 typedef enum { HANDLER_UNSET
,
42 HANDLER_WAIT_FOR_EVENT
,
47 #define HTTP_LINGER_TIMEOUT 5