[mod_status] page refresh option (fixes #2170)
[lighttpd.git] / src / settings.h
blob2129e42e3e4f10e9273799c572e71c9daba84caa
1 #ifndef _LIGHTTPD_SETTINGS_H_
2 #define _LIGHTTPD_SETTINGS_H_
3 #include "first.h"
5 #ifdef __GNUC__
6 # define LI_NORETURN __attribute__((noreturn))
7 #else
8 # define LI_NORETURN
9 #endif
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
18 /**
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)
30 /**
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,
39 HANDLER_GO_ON,
40 HANDLER_FINISHED,
41 HANDLER_COMEBACK,
42 HANDLER_WAIT_FOR_EVENT,
43 HANDLER_ERROR,
44 HANDLER_WAIT_FOR_FD
45 } handler_t;
47 #define HTTP_LINGER_TIMEOUT 5
49 #endif