[master] 71c29e8 handle workspace overflow in V1F_Setup_Fetch()
Nils Goroll
nils.goroll at uplex.de
Wed Apr 11 13:40:14 UTC 2018
commit 71c29e869634a9b2931657e353365de26f2c988d
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Apr 11 12:08:09 2018 +0200
handle workspace overflow in V1F_Setup_Fetch()
Ref #2645 but cannot be the cause because workspace is just not
overflowed
diff --git a/bin/varnishd/http1/cache_http1_fetch.c b/bin/varnishd/http1/cache_http1_fetch.c
index 1a77021..27bf521 100644
--- a/bin/varnishd/http1/cache_http1_fetch.c
+++ b/bin/varnishd/http1/cache_http1_fetch.c
@@ -216,7 +216,11 @@ V1F_FetchRespHdr(struct busyobj *bo)
assert(bo->vfc->resp == bo->beresp);
if (bo->htc->body_status != BS_NONE &&
bo->htc->body_status != BS_ERROR)
- (void)V1F_Setup_Fetch(bo->vfc, bo->htc);
+ if (V1F_Setup_Fetch(bo->vfc, bo->htc)) {
+ VSLb(bo->vsl, SLT_FetchError, "overflow");
+ htc->doclose = SC_RX_OVERFLOW;
+ return (-1);
+ }
return (0);
}
More information about the varnish-commit
mailing list