Skip to content

Commit

Permalink
Remove useless condition
Browse files Browse the repository at this point in the history
Varnish automatically takes care of the number of request restarts.

See: https://www.varnish-cache.org/docs/3.0/reference/vcl.html
  • Loading branch information
hvelarde committed Nov 2, 2015
1 parent 96c779f commit ad1f7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion production.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ sub vcl_deliver {
}

sub vcl_error {
if (obj.status >= 500 && obj.status <= 599 && req.restarts < 4) {
if (obj.status >= 500 && obj.status <= 599) {
# 4 retry for 5xx error
return(restart);
} elseif (obj.status >= 400 && obj.status <= 499 ) {
Expand Down

0 comments on commit ad1f7a2

Please sign in to comment.