diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
commit | 59f5fd20e2f59ae186d5a461aef7782dd55e4e7b (patch) | |
tree | 10475faf0b6dcb812b64da679f4ae8ff01c45874 /data/lighttpd/lighttpd-1.4.53/src/settings.h | |
parent | f06e297cd175cca39745f6d1970225ae88aa68f1 (diff) |
Updated lighttpd.
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/src/settings.h')
-rw-r--r-- | data/lighttpd/lighttpd-1.4.53/src/settings.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/src/settings.h b/data/lighttpd/lighttpd-1.4.53/src/settings.h new file mode 100644 index 000000000..a28cf7754 --- /dev/null +++ b/data/lighttpd/lighttpd-1.4.53/src/settings.h @@ -0,0 +1,29 @@ +#ifndef _LIGHTTPD_SETTINGS_H_ +#define _LIGHTTPD_SETTINGS_H_ +#include "first.h" + +#define FILE_CACHE_MAX 16 + +/** + * max size of a buffer which will just be reset + * to ->used = 0 instead of really freeing the buffer + * + * 64kB (no real reason, just a guess) + */ +#define BUFFER_MAX_REUSE_SIZE (4 * 1024) + +/* both should be way smaller than SSIZE_MAX :) */ +#define MAX_READ_LIMIT (256*1024) +#define MAX_WRITE_LIMIT (256*1024) + +/** + * max size of the HTTP request header + * + * 32k should be enough for everything (just a guess) + * + */ +#define MAX_HTTP_REQUEST_HEADER (32 * 1024) + +#define HTTP_LINGER_TIMEOUT 5 + +#endif |