Commit 15f5c12d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

When the client abandons a fetch we close the connection to the

backend if still in mid-transfer.  With sufficiently small -bodylen,
as in this test, that might or might not happen.

Explicitly close from the server side, to stabilize this test.

Fixes #2280
parent 581948c4
......@@ -20,6 +20,9 @@ server s1 {
expect req.http.If-None-Match == <undef>
txresp -hdr "ETag: foo" -bodylen 7
close
accept
rxreq
expect req.url == "/lm"
txresp -hdr "Last-Modified: Thu, 26 Jun 2008 12:00:01 GMT" \
......@@ -107,6 +110,8 @@ client c1 {
expect resp.http.X-Cache == "MISS"
} -run
varnish v1 -vsl_catchup
# The next two tests are adapted from the former r01206.vtc, reflecting
# changes for the recv->pass and beresp.uncacheable (hit-for-miss) cases
# after rolling back the fix for #1206, and verifying that they are
......@@ -125,6 +130,9 @@ server s1 {
expect req.http.If-None-Match == "foo"
txresp -hdr "ETag: foo" -bodylen 7
close
accept
rxreq
expect req.url == "/lm2"
txresp -hdr "Last-Modified: Thu, 26 Jun 2008 12:00:01 GMT" \
......@@ -201,6 +209,9 @@ server s1 {
expect req.http.If-None-Match == <undef>
txresp -hdr "ETag: foo" -bodylen 7
close
accept
rxreq
expect req.url == "/lm3"
txresp -hdr "Last-Modified: Thu, 26 Jun 2008 12:00:01 GMT" \
......
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