[6.0] e66c57ce0 stevedore: Set up nuke_limit for buffer allocations

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 18 15:27:06 UTC 2023


commit e66c57ce0be12a539c05cad1c569b5f94c5c4c3c
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Aug 31 07:32:13 2021 +0200

    stevedore: Set up nuke_limit for buffer allocations

diff --git a/bin/varnishd/storage/stevedore.c b/bin/varnishd/storage/stevedore.c
index a6c124fc4..1f79fca43 100644
--- a/bin/varnishd/storage/stevedore.c
+++ b/bin/varnishd/storage/stevedore.c
@@ -120,6 +120,7 @@ STV_AllocBuf(struct worker *wrk, const struct stevedore *stv, size_t size)
 	if (stv->allocbuf == NULL)
 		return (NULL);
 
+	wrk->strangelove = cache_param->nuke_limit;
 	buf = stv->allocbuf(wrk, stv, size + PRNDUP(sizeof *stvbuf), &priv);
 	if (buf == NULL)
 		return (NULL);


More information about the varnish-commit mailing list