Annotation of embedaddon/lighttpd/src/settings.h, revision 1.1.1.3

1.1       misho       1: #ifndef _LIGHTTPD_SETTINGS_H_
                      2: #define _LIGHTTPD_SETTINGS_H_
1.1.1.3 ! misho       3: #include "first.h"
1.1       misho       4: 
1.1.1.2   misho       5: #ifdef __GNUC__
                      6: # define LI_NORETURN __attribute__((noreturn))
                      7: #else
                      8: # define LI_NORETURN
                      9: #endif
                     10: 
1.1.1.3 ! misho      11: #define UNUSED(x) ( (void)(x) )
        !            12: 
1.1       misho      13: #define BV(x) (1 << x)
                     14: 
                     15: #define INET_NTOP_CACHE_MAX 4
                     16: #define FILE_CACHE_MAX      16
                     17: 
                     18: /**
                     19:  * max size of a buffer which will just be reset
                     20:  * to ->used = 0 instead of really freeing the buffer
                     21:  *
                     22:  * 64kB (no real reason, just a guess)
                     23:  */
                     24: #define BUFFER_MAX_REUSE_SIZE  (4 * 1024)
                     25: 
                     26: /* both should be way smaller than SSIZE_MAX :) */
                     27: #define MAX_READ_LIMIT (256*1024)
                     28: #define MAX_WRITE_LIMIT (256*1024)
                     29: 
                     30: /**
                     31:  * max size of the HTTP request header
                     32:  *
                     33:  * 32k should be enough for everything (just a guess)
                     34:  *
                     35:  */
                     36: #define MAX_HTTP_REQUEST_HEADER  (32 * 1024)
                     37: 
                     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;
                     46: 
                     47: #define HTTP_LINGER_TIMEOUT 5
                     48: 
                     49: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>