Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
3ca71ebe
Commit
3ca71ebe
authored
Mar 23, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add testcase for #2275
parent
ce9c09a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
r02275.vtc
bin/varnishtest/tests/r02275.vtc
+39
-0
No files found.
bin/varnishtest/tests/r02275.vtc
0 → 100644
View file @
3ca71ebe
varnishtest "Chunked with no space for iov's on workspace"
server s1 -repeat 2 {
rxreq
txresp -nolen -hdr "Transfer-encoding: chunked"
delay 1
chunkedlen 10
delay .1
chunkedlen 10
delay .1
chunkedlen 0
} -start
varnish v1 -vcl+backend {
import debug;
sub vcl_deliver {
if (req.url == "/1") {
debug.workspace_allocate(client,
-1 * (40 + debug.typesize("p") * 25));
} else {
debug.workspace_allocate(client,
-1 * (48 + debug.typesize("p") * 25));
}
set resp.http.foo = debug.workspace_free(client);
}
} -start
client c1 {
txreq -url /1
rxresp
expect resp.status == 500
} -run
client c1 {
txreq -url /2
rxresp
expect resp.status == 200
} -run
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