Add test case contributed by Shohei Tanaka / xcir

See #16
parent f8ab2c0c
varnishtest "issue #16 - stall on cl: 0 responses"
# Test case contributed by Shohei Tanaka aka xcir, thank you!
# Modified as per comments in:
# https://gitlab.com/uplex/varnish/libvdp-pesi/-/issues/16
varnish v1 -cliok "param.set debug +syncvsl"
server s1 {
rxreq
txresp -body {
<html>
Before include
200:<esi:include src="/a" />
204:<esi:include src="/b" />
done
</html>
}
rxreq
txresp -status 200 -body "200"
} -start
server s2 {
rxreq
txresp -status 204
} -start
varnish v1 -vcl+backend {
import ${vmod_pesi};
sub vcl_backend_fetch {
if (bereq.url == "/b") {
set bereq.backend = s2;
} else {
set bereq.backend = s1;
}
}
sub vcl_backend_response {
if(bereq.url =="/"){
set beresp.do_esi = true;
}
}
sub vcl_deliver {
pesi.activate();
}
} -start
client c1 {
txreq
rxresp
} -run
server s1 -wait
server s2 -wait
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