vtest "Test hsh_rush"

barrier b1 cond 5

server s1 {
	rxreq
	barrier b1 sync
	txresp -bodylen 10
} -start

vinyl v1 -vcl+backend {
} -start

vinyl v1 -cliok "param.set rush_exponent 2"

client c1 {
	txreq
	barrier b1 sync
	rxresp
	expect resp.bodylen == 10
} -start

client c2 {
	txreq
	barrier b1 sync
	rxresp
	expect resp.bodylen == 10
} -start

client c3 {
	txreq
	barrier b1 sync
	rxresp
	expect resp.bodylen == 10
} -start

client c4 {
	txreq
	barrier b1 sync
	rxresp
	expect resp.bodylen == 10
} -start

client c1 -wait
client c2 -wait
client c3 -wait
client c4 -wait
