r4030 - in trunk/varnish-cache: . bin/varnishd
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Mon Apr 6 14:39:13 CEST 2009
Author: tfheen
Date: 2009-04-06 14:39:13 +0200 (Mon, 06 Apr 2009)
New Revision: 4030
Modified:
trunk/varnish-cache/bin/varnishd/cache.h
trunk/varnish-cache/configure.ac
Log:
Make HTTP_HDR_MAX_VAL a configure option
Thanks to "whocares" in the bts.
Fixes #455
Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h 2009-04-03 22:02:08 UTC (rev 4029)
+++ trunk/varnish-cache/bin/varnishd/cache.h 2009-04-06 12:39:13 UTC (rev 4030)
@@ -58,8 +58,6 @@
#include "heritage.h"
#include "miniobj.h"
-#define HTTP_HDR_MAX_VAL 32
-
enum {
/* Fields from the first line of HTTP proto */
HTTP_HDR_REQ,
Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac 2009-04-03 22:02:08 UTC (rev 4029)
+++ trunk/varnish-cache/configure.ac 2009-04-06 12:39:13 UTC (rev 4030)
@@ -363,6 +363,15 @@
fi
AC_DEFINE_UNQUOTED([VCC_CC],"$VCC_CC",[C compiler command line for VCL code])
+# Define HTTP_HDR_MAX_VAL
+AC_ARG_WITH(max-header-fields,
+ AS_HELP_STRING([--with-max-header-fields=NUM],
+ [How many header fields to support (default=32)]),
+ [],
+ [with_max_header_fields=32])
+
+AC_DEFINE_UNQUOTED(HTTP_HDR_MAX_VAL, $with_max_header_fields, [Define maximum number of header fields supported by varnish ])
+
# Use jemalloc on Linux
JEMALLOC_SUBDIR=
JEMALLOC_LDADD=
More information about the varnish-commit
mailing list