Commit abf3df21 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use semaphores instead of delays to get the timing right here.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5414 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 06715a72
......@@ -6,24 +6,26 @@ server s1 {
rxreq
expect req.url == "/foo"
send "HTTP/1.1 200 Ok\r\nConnection: close\r\n\r\n"
delay .5
sema r1 sync 2
send "line1\n"
delay .5
sema r1 sync 2
send "line2\n"
} -start
varnish v1 -vcl+backend { } -start
client c1 {
txreq -url "/foo"
txreq -url "/foo" -hdr "client: c1"
rxresp
expect resp.status == 200
expect resp.http.content-length == 12
expect resp.http.x-varnish == "1001"
} -start
delay .2
client c2 {
txreq -url "/foo"
sema r1 sync 2
txreq -url "/foo" -hdr "client: c2"
sema r1 sync 2
rxresp
expect resp.status == 200
expect resp.http.content-length == 12
......
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