Skip to content

Commit

Permalink
handle workspace overflow in V1F_Setup_Fetch()
Browse files Browse the repository at this point in the history
Ref varnishcache#2645 but cannot be the cause because workspace is just not
overflowed
  • Loading branch information
nigoroll authored and dridi committed Jun 19, 2018
1 parent 5664571 commit d48317b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/varnishd/http1/cache_http1_fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit d48317b

Please sign in to comment.