Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also fix some errors in vcl0 handling: - Only the top request may release vcl0 because it owns it - because we can re-embark for ESI, we can not assert that vcl0 is NULL in CNT_Embark() passes tests/r02849.vtc again. still fails r03003.vtc, which will get fixed in a follow up commit Fixes #3019 with test case by @Dridi
- Loading branch information
Showing
9 changed files
with
50 additions
and
13 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
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
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
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
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,35 @@ | ||
varnishtest "return(vcl) then reembark" | ||
|
||
barrier b1 cond 2 | ||
|
||
server s1 { | ||
rxreq | ||
barrier b1 sync | ||
txresp | ||
} -start | ||
|
||
varnish v1 -vcl+backend "" | ||
varnish v1 -cliok "vcl.label lbl vcl1" | ||
varnish v1 -vcl { | ||
backend be { .host = "${bad_backend}"; } | ||
|
||
sub vcl_recv { | ||
return (vcl(lbl)); | ||
} | ||
} -start | ||
|
||
client c1 { | ||
txreq | ||
rxresp | ||
expect resp.status == 200 | ||
} -start | ||
|
||
client c2 { | ||
barrier b1 sync | ||
txreq | ||
rxresp | ||
expect resp.status == 200 | ||
} -start | ||
|
||
client c1 -wait | ||
client c2 -wait |