[master] 9c7abda73 parameter canary vtc: Get a better idea of workspace usage

Nils Goroll nils.goroll at uplex.de
Mon Jan 27 17:12:06 UTC 2020


commit 9c7abda7396b6dca517fc7b081762a4c5c5232d7
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Jan 27 18:11:01 2020 +0100

    parameter canary vtc: Get a better idea of workspace usage
    
    related to vtest failures

diff --git a/bin/varnishtest/tests/v00004.vtc b/bin/varnishtest/tests/v00004.vtc
index 716f47294..872796caa 100644
--- a/bin/varnishtest/tests/v00004.vtc
+++ b/bin/varnishtest/tests/v00004.vtc
@@ -140,6 +140,7 @@ server s1 {
 varnish v1 -vcl+backend {
 	import std;
 	import debug;
+	import vtc;
 
 	sub recv0 { call recv1; std.log("STK recv0 " + debug.stk()); }
 	sub recv1 { call recv2; std.log("STK recv1 " + debug.stk()); }
@@ -151,11 +152,14 @@ varnish v1 -vcl+backend {
 	sub recv7 { call recv8; std.log("STK recv7 " + debug.stk()); }
 	sub recv8 { call recv9; std.log("STK recv8 " + debug.stk()); }
 	sub recv9 {
-		std.log("STK recv9 " + debug.stk());
+		std.log("STK recv9 " + debug.stk() + " WS " +
+		    vtc.workspace_free(client));
 		set req.http.regex = regsub(req.http.cookie, "(.*)", "\1\1\1\1\1\1\1\1");
+		std.log("WS " + vtc.workspace_free(client));
 		# hey geoff, this is deliberate
 		set req.http.regex = regsub(req.http.regex,
 		  "(.*)(.{5})(.{6})(.{7})(.{8})", "/\5\4\3\2\1");
+		std.log("WS " + vtc.workspace_free(client));
 		std.log("REGEX recv9 " + req.http.regex);
 	}
 


More information about the varnish-commit mailing list