[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    [6.0] 7f7908008 Emit a VCL_Error SLT when we exceed ESI depth
From:       Dridi Boukelmoune <dridi.boukelmoune () gmail ! com>
Date:       2018-10-31 13:08:31
Message-ID: 20181031130831.A4010959BE () lists ! varnish-cache ! org
[Download RAW message or body]


commit 7f790800813359274102112ba64b173d25646362
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date:   Sat Oct 13 07:05:53 2018 +0000

    Emit a VCL_Error SLT when we exceed ESI depth

diff --git a/bin/varnishd/cache/cache_esi_deliver.c b/bin/varnishd/cache/cache_esi_deliver.c
index 1e238d854..1ce7ea4ca 100644
--- a/bin/varnishd/cache/cache_esi_deliver.c
+++ b/bin/varnishd/cache/cache_esi_deliver.c
@@ -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);
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic