Commit efe03fa1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

change "restart;" to "return(restart);"



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4651 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 62e6b5f5
......@@ -19,7 +19,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_fetch {
restart;
return (restart);
}
sub vcl_error {
......
......@@ -25,7 +25,7 @@ varnish v1 -vcl+backend {
sub vcl_fetch {
if (beresp.status != 200) {
restart;
return (restart);
}
}
} -start
......
......@@ -26,7 +26,7 @@ varnish v1 -vcl {
}
sub vcl_error {
if (req.restarts < 1) {
restart;
return (restart);
} else {
set obj.status = 201;
}
......
......@@ -11,7 +11,7 @@ varnish v1 -vcl {
set req.backend = bad;
}
sub vcl_error {
restart;
return (restart);
}
} -start
......
......@@ -36,7 +36,7 @@ varnish v1 -arg "-p saintmode_threshold=2" -vcl+backend {
sub vcl_fetch {
if (beresp.http.X-Saint == "yes") {
set beresp.saintmode = 20s;
restart;
return(restart);
}
set beresp.grace = 1h;
set beresp.ttl = 1s;
......
......@@ -43,7 +43,7 @@ varnish v1 -arg "-p saintmode_threshold=10" -vcl {
sub vcl_fetch {
if (beresp.http.X-Saint == "yes") {
set beresp.saintmode = 20s;
restart;
return (restart);
}
set beresp.grace = 1h;
set beresp.ttl = 1s;
......
......@@ -14,7 +14,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_hit {
set obj.cacheable = false;
restart;
return (restart);
}
} -start
......
......@@ -18,13 +18,13 @@ varnish v1 -vcl+backend {
set beresp.ttl = 60 s;
set beresp.http.X-Magic-Redirect = "1";
set req.url = beresp.http.Location;
restart;
return (restart);
}
}
sub vcl_hit {
if (obj.http.X-Magic-Redirect == "1") {
set req.url = obj.http.Location;
restart;
return (restart);
}
}
} -start
......
......@@ -24,7 +24,7 @@ varnish v1 -vcl+backend {
if (beresp.http.foo == "2")
{
set beresp.saintmode = 2s;
restart;
return (restart);
}
return(deliver);
}
......
......@@ -14,7 +14,7 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_hit {
set obj.ttl = 0s;
restart;
return (restart);
}
} -start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment