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

Make sure the entire waiting list is rushed when an object goes

non-busy.  Not sure what I thought when I changed it last, but it
was clearly not smart thinking.

Spotted by:	Martin
Test case by:	Martin

Fixes	#963
parent 149c4d4f
varnishtest "Test hsh_rush"
server s1 {
rxreq
sema r1 sync 5
txresp -bodylen 10
} -start
varnish v1 -vcl+backend {
} -start
varnish v1 -cliok "param.set rush_exponent 2"
client c1 {
txreq
sema r1 sync 5
rxresp
expect resp.bodylen == 10
} -start
client c2 {
txreq
sema r1 sync 5
rxresp
expect resp.bodylen == 10
} -start
client c3 {
txreq
sema r1 sync 5
rxresp
expect resp.bodylen == 10
} -start
client c4 {
txreq
sema r1 sync 5
rxresp
expect resp.bodylen == 10
} -start
client c1 -wait
client c2 -wait
client c3 -wait
client c4 -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