Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdp-pesi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
libvdp-pesi
Commits
6523e83a
Unverified
Commit
6523e83a
authored
Feb 29, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test case contributed by Shohei Tanaka / xcir
See #16
parent
f8ab2c0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
R00016.vtc
src/tests/R00016.vtc
+52
-0
No files found.
src/tests/R00016.vtc
0 → 100644
View file @
6523e83a
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment