summaryrefslogtreecommitdiff
path: root/libexec/httpd
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2013-09-04 22:59:50 +0000
committerpooka <pooka@NetBSD.org>2013-09-04 22:59:50 +0000
commitf9509b598f9cbcda4f766e3d61990a89aefcc674 (patch)
tree57554322db9090d6d68672c8687e4b4eb8bfa9aa /libexec/httpd
parent3f80f1118ba9f6d15511cc047da247c0de9b3496 (diff)
allow compile-time overriding of BOZO_WRSZ/MMAPSZ parameters
Diffstat (limited to 'libexec/httpd')
-rw-r--r--libexec/httpd/bozohttpd.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libexec/httpd/bozohttpd.h b/libexec/httpd/bozohttpd.h
index 0128870c351..6e28bc78c8e 100644
--- a/libexec/httpd/bozohttpd.h
+++ b/libexec/httpd/bozohttpd.h
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.h,v 1.27 2013/07/11 08:24:47 mrg Exp $ */
+/* $NetBSD: bozohttpd.h,v 1.28 2013/09/04 22:59:50 pooka Exp $ */
/* $eterna: bozohttpd.h,v 1.39 2011/11/18 09:21:15 mrg Exp $ */
@@ -159,9 +159,13 @@ typedef struct bozoprefs_t {
char **value; /* values for the name entries */
} bozoprefs_t;
-/* write in upto 64KiB chunks, and mmap in upto 64MiB chunks */
+/* by default write in upto 64KiB chunks, and mmap in upto 64MiB chunks */
+#ifndef BOZO_WRSZ
#define BOZO_WRSZ (64 * 1024)
+#endif
+#ifndef BOZO_MMAPSZ
#define BOZO_MMAPSZ (BOZO_WRSZ * 1024)
+#endif
/* debug flags */
#define DEBUG_NORMAL 1