Commit 06715a72 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use a semphore instead of a delay



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5413 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 68eaf7a1
......@@ -5,13 +5,12 @@ test "things stuck on busy object"
server s1 {
rxreq
sema r1 sync 2
delay 1
sema r1 sync 2
# There is a race in varnish between the first request releasing
# the backend connection, and the second request trying to get it
# which makes reuse of backend connection sometimes work and
# sometimes not. Solve by never reusing the backend connection.
txresp -hdr "Connection: close" -bodylen 2
expect_close
accept
rxreq
txresp -bodylen 5
......@@ -34,6 +33,7 @@ client c1 {
client c2 {
sema r1 sync 2
txreq
sema r1 sync 2
rxresp
expect resp.bodylen == 5
} -start
......
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