Commit 01f5f206 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Regression test for #667



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4632 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 12a4d079
# $Id$
test "things stuck on busy object"
server s1 {
rxreq
sema r1 sync 2
delay 1
# 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
} -start
varnish v1 -vcl+backend {
sub vcl_fetch {
set beresp.cacheable = false;
}
} -start
client c1 {
txreq
rxresp
expect resp.bodylen == 2
} -start
client c2 {
sema r1 sync 2
txreq
rxresp
expect resp.bodylen == 5
} -start
client c1 -wait
client c2 -wait
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