Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd allow compile-time overriding of BOZO_WRSZ/MMA...
details: https://anonhg.NetBSD.org/src/rev/f2b1babacd5a
branches: trunk
changeset: 789721:f2b1babacd5a
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Sep 04 22:59:50 2013 +0000
description:
allow compile-time overriding of BOZO_WRSZ/MMAPSZ parameters
diffstat:
libexec/httpd/bozohttpd.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r ac398d70eb0f -r f2b1babacd5a libexec/httpd/bozohttpd.h
--- a/libexec/httpd/bozohttpd.h Wed Sep 04 22:38:09 2013 +0000
+++ b/libexec/httpd/bozohttpd.h Wed Sep 04 22:59:50 2013 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index