This repository has been archived by the owner on Jul 30, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't consider pass an error when doing streaming fetch.
Patch by: tnt
- Loading branch information
1 parent
82c4b09
commit 8c821b7
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
varnishtest "#1157 - Connection close on pass and do_stream" | ||
|
||
server s1 { | ||
rxreq | ||
txresp | ||
expect req.url == "/" | ||
|
||
rxreq | ||
txresp | ||
expect req.url == "/" | ||
} -start | ||
|
||
varnish v1 -vcl+backend { | ||
sub vcl_recv { return (pass); } | ||
sub vcl_fetch { set beresp.do_stream = true; } | ||
} -start | ||
|
||
client c1 { | ||
txreq -url / | ||
rxresp | ||
expect resp.status == 200 | ||
|
||
txreq -url / | ||
rxresp | ||
expect resp.status == 200 | ||
} -run |