Commit 591dd5b6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Unbreak backend retries

parent 1066f830
......@@ -399,6 +399,7 @@ vbe_dir_gethdrs(const struct director *d, struct worker *wrk,
VSLb(bo->vsl, SLT_FetchError, "no backend connection");
return (-1);
}
AN(bo->htc);
i = V1F_fetch_hdr(wrk, bo);
/*
......@@ -410,12 +411,13 @@ vbe_dir_gethdrs(const struct director *d, struct worker *wrk,
AZ(bo->htc);
VSC_C_main->backend_retry++;
bo->doclose = SC_NULL;
bo->htc->vbc = vbe_dir_getfd(d, bo);
if (bo->htc->vbc == NULL) {
vbc = vbe_dir_getfd(d, bo);
if (vbc == NULL) {
VSLb(bo->vsl, SLT_FetchError, "no backend connection");
bo->htc = NULL;
return (-1);
}
AN(bo->htc);
i = V1F_fetch_hdr(wrk, bo);
}
if (i != 0) {
......
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