Commit 01d7080b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use the new "allocate all but" debug.workspace_allocate() feature

parent 52099d46
......@@ -14,7 +14,7 @@ server s1 {
varnish v1 -vcl+backend {
import debug;
sub vcl_deliver {
debug.workspace_allocate(client, debug.workspace_free(client) - 192);
debug.workspace_allocate(client, -192);
if (req.url ~ "/bar") {
set resp.http.x-foo = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
......
......@@ -18,7 +18,7 @@ varnish v1 -vcl+backend {
}
sub vcl_backend_fetch {
debug.workspace_allocate(backend, debug.workspace_free(backend) - std.integer(bereq.http.WS, 256));
debug.workspace_allocate(backend, -1 * std.integer(bereq.http.WS, 256));
}
} -start
......
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