r988 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Sep 15 11:54:52 CEST 2006


Author: phk
Date: 2006-09-15 11:54:52 +0200 (Fri, 15 Sep 2006)
New Revision: 988

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_param.c
Log:
Allow session_grace to be set to zero


Modified: trunk/varnish-cache/bin/varnishd/mgt_param.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_param.c	2006-09-15 09:43:56 UTC (rev 987)
+++ trunk/varnish-cache/bin/varnishd/mgt_param.c	2006-09-15 09:54:52 UTC (rev 988)
@@ -176,11 +176,6 @@
 	(void)par;
 	if (arg != NULL) {
 		u = strtoul(arg, NULL, 0);
-		if (u == 0) {
-			cli_out(cli, "Timeout must be greater than zero\n");
-			cli_result(cli, CLIS_PARAM);
-			return;
-		}
 		params->session_grace = u;
 	}
 	if (cli == NULL)




More information about the varnish-commit mailing list