]> err.no Git - varnish/commitdiff
Allow session_grace to be set to zero
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Sep 2006 09:54:52 +0000 (09:54 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Sep 2006 09:54:52 +0000 (09:54 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@988 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_param.c

index 675013899341a2407b0686e2824bf64f51a5e499..bb02a19feb45d1af9d27bf6f8a983229e9b97ba1 100644 (file)
@@ -176,11 +176,6 @@ tweak_session_grace(struct cli *cli, struct parspec *par, const char *arg)
        (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)