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

Emit a VCL_Error SLT when we exceed ESI depth

parent 267504b8
......@@ -108,8 +108,12 @@ ved_include(struct req *preq, const char *src, const char *host,
CHECK_OBJ_NOTNULL(ecx, ECX_MAGIC);
wrk = preq->wrk;
if (preq->esi_level >= cache_param->max_esi_depth)
if (preq->esi_level >= cache_param->max_esi_depth) {
VSLb(preq->vsl, SLT_VCL_Error,
"ESI depth limit reach (param max_esi_depth = %u",
cache_param->max_esi_depth);
return;
}
req = Req_New(wrk, sp);
SES_Ref(sp);
......
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