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