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

We always want to go through vcl_fetch(), even on error 503


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2070 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 62f4b0cd
......@@ -304,13 +304,10 @@ cnt_fetch(struct sess *sp)
VBE_free_bereq(sp->bereq);
sp->bereq = NULL;
if (0 && i) {
SYN_ErrorPage(sp, 503, "Error talking to backend", 30);
} else {
if (!i)
RFC2616_cache_policy(sp, &sp->obj->http); /* XXX -> VCL */
else
sp->obj->http.status = 503;
http_PutStatus(sp->wrk, sp->fd, &sp->obj->http, 503);
VCL_fetch_method(sp);
......@@ -337,7 +334,6 @@ cnt_fetch(struct sess *sp)
default:
INCOMPL();
}
}
sp->obj->cacheable = 1;
if (sp->obj->objhead != NULL) {
......
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