Commit f989ab24 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Stop VCL processing if vcl_recv failed

VCL failure should abort execution, but vcl_recv would possibly modify
req and even continue execution in vcl_hash.

Refs #3303
parent fa988f5a
......@@ -884,6 +884,12 @@ cnt_recv(struct worker *wrk, struct req *req)
}
VCL_recv_method(req->vcl, wrk, req, NULL, NULL);
if (recv_handling == VCL_RET_FAIL) {
req->req_step = R_STP_VCLFAIL;
return (REQ_FSM_MORE);
}
if (wrk->handling == VCL_RET_VCL && req->restarts == 0) {
// Req_Rollback has happened in VPI_vcl_select
assert(WS_Snapshot(req->ws) == req->ws_req);
......
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