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
de1aa79a
Commit
de1aa79a
authored
Apr 24, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend send_timeout test to uds
parent
51127b46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
s00010.vtc
bin/varnishtest/tests/s00010.vtc
+26
-3
No files found.
bin/varnishtest/tests/s00010.vtc
View file @
de1aa79a
...
...
@@ -5,7 +5,10 @@ server s1 {
txresp -bodylen 100000
} -start
varnish v1 -vcl+backend {
varnish v1 -arg "-p timeout_idle=1" \
-arg "-a 127.0.0.1:0" \
-arg "-a ${tmpdir}/v1.sock" \
-vcl+backend {
import debug;
sub vcl_deliver {
...
...
@@ -17,6 +20,7 @@ varnish v1 -cliok "param.set send_timeout 1"
logexpect l1 -v v1 {
expect * * Debug "Hit total send timeout"
expect * * Debug "Hit total send timeout"
} -start
client c1 -rcvbuf 128 {
...
...
@@ -24,8 +28,17 @@ client c1 -rcvbuf 128 {
rxresphdrs
# keep the session open for 2 seconds
delay 2
} -run
} -start
client c1u -connect "${tmpdir}/v1.sock" -rcvbuf 128 {
txreq
rxresphdrs
# keep the session open for 2 seconds
delay 2
} -start
client c1 -wait
client c1u -wait
logexpect l1 -wait
feature SO_RCVTIMEO_WORKS
...
...
@@ -34,6 +47,7 @@ varnish v1 -cliok "param.reset send_timeout"
logexpect l2 -v v1 {
expect * * Debug "Hit idle send timeout"
expect * * Debug "Hit idle send timeout"
} -start
client c2 -rcvbuf 128 {
...
...
@@ -41,6 +55,15 @@ client c2 -rcvbuf 128 {
rxresphdrs
# keep the session open for 2 seconds
delay 2
} -run
} -start
client c2u -connect "${tmpdir}/v1.sock" -rcvbuf 128 {
txreq
rxresphdrs
# keep the session open for 2 seconds
delay 2
} -start
client c2 -wait
client c2u -wait
logexpect l2 -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