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
b8496833
Commit
b8496833
authored
Feb 18, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for HTTP/2 over Unix domain sockets.
parent
fbbcf28b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
t02013.vtc
bin/varnishtest/tests/t02013.vtc
+58
-0
No files found.
bin/varnishtest/tests/t02013.vtc
0 → 100644
View file @
b8496833
varnishtest "Direct H2 start over Unix domain sockets"
server s1 {
rxreq
expect req.http.host == foo.bar
txresp \
-hdr "H234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789I: foo" \
-hdr "Foo: H234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789I" \
-bodylen 10
} -start
varnish v1 -arg "-a ${tmpdir}/v1.sock" -vcl+backend {
sub vcl_recv {
return (pipe);
}
} -start
varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set feature -http2"
client c1 -connect "${tmpdir}/v1.sock" {
txpri
expect_close
} -run
varnish v1 -cliok "param.set feature +http2"
client c1 -connect "${tmpdir}/v1.sock" {
stream 1 {
txprio -weight 10 -stream 0
} -run
stream 3 {
txprio -weight 10 -stream 0
} -run
stream 5 {
txprio -weight 10 -stream 2
} -run
stream 7 {
txreq -dep 3 -hdr :authority foo.bar -pad cotton
rxresp
expect resp.status == 200
delay 1
txrst -err 0x1111
} -start
stream 0 {
txping -data "_-__-_-_"
rxping
expect ping.ack == "true"
expect ping.data == "_-__-_-_"
} -run
stream 7 -wait
} -run
varnish v1 -expect MEMPOOL.req0.live == 0
varnish v1 -expect MEMPOOL.req1.live == 0
varnish v1 -expect MEMPOOL.sess0.live == 0
varnish v1 -expect MEMPOOL.sess1.live == 0
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