Commit 397c9f0b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add regression test for #495



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4544 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 39a4ade0
# $Id$
test "HTTP 1.0 backend not getting reused"
server s1 {
rxreq
txresp -proto HTTP/1.0 -status 201 -hdr "Connection: keep-alive" -body foo
rxreq
txresp -proto HTTP/1.0 -status 202 -hdr "Connection: close" -body foo
expect_close
accept
rxreq
txresp -proto HTTP/1.0 -status 203 -body foo
expect_close
accept
rxreq
txresp -proto HTTP/1.0 -status 204 -body bar
} -start
varnish v1 -vcl+backend {
sub vcl_recv { return (pass); }
} -start
client c1 {
txreq
rxresp
expect resp.status == 201
txreq
rxresp
expect resp.status == 202
txreq
rxresp
expect resp.status == 203
txreq
rxresp
expect resp.status == 204
} -run
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