r1035 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sat Sep 16 23:05:45 CEST 2006


Author: phk
Date: 2006-09-16 23:05:45 +0200 (Sat, 16 Sep 2006)
New Revision: 1035

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_param.c
Log:
twiddle explanations and defaults.


Modified: trunk/varnish-cache/bin/varnishd/mgt_param.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_param.c	2006-09-16 20:59:35 UTC (rev 1034)
+++ trunk/varnish-cache/bin/varnishd/mgt_param.c	2006-09-16 21:05:45 UTC (rev 1035)
@@ -286,7 +286,7 @@
 tweak_srcaddr_hash(struct cli *cli, struct parspec *par, const char *arg)
 {
 	(void)par;
-	tweak_generic_uint(cli, &params->srcaddr_hash, arg, 64, UINT_MAX);
+	tweak_generic_uint(cli, &params->srcaddr_hash, arg, 63, UINT_MAX);
 }
 
 /*--------------------------------------------------------------------*/
@@ -392,10 +392,12 @@
 		"1024", "connections" },
 	{ "srcaddr_hash", tweak_srcaddr_hash,
 		"Number of source address hash buckets.\n"
+		"Powers of two are bad, prime numbers are good.\n"
 		MUST_RESTART,
-		"1024", "buckets" },
+		"1049", "buckets" },
 	{ "srcaddr_ttl", tweak_srcaddr_ttl,
-		"Lifetime of srcaddr entries.\n",
+		"Lifetime of srcaddr entries.\n"
+		"Zero will disable srcaddr accounting.\n",
 		"30", "seconds" },
 	{ NULL, NULL, NULL }
 };




More information about the varnish-commit mailing list