This repository has been archived by the owner on Jul 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r4967: Fix a problem in director teardown at vcl.discard time
We didn't create/destroy directors and backends in a consistent order, and in some case we even destroyed directors more than once. Always destroy in opposite order of creation (which follows VCL source order). Turn the bottom element of the array into (only) an indication of which backend/director is the default. Fixes: #722 git-svn-id: http://www.varnish-cache.org/svn/branches/2.1@5040 d4fa192b-c00b-0410-8231-f00ffab90ce4
- Loading branch information
Tollef Fog Heen
committed
Jul 13, 2010
1 parent
fabdbeb
commit ec9a6b0
Showing
4 changed files
with
52 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# $Id$ | ||
|
||
test "Director cleanup fails on vcl.discard" | ||
|
||
server s1 { | ||
rxreq | ||
txresp | ||
} -start | ||
|
||
varnish v1 -vcl+backend { | ||
director foo random { | ||
{ .backend = s1; .weight = 1; } | ||
{ .backend = { .host = "${s1_addr}"; .port = "${s1_port}";} .weight =1; } | ||
{ .backend = { .host = "${s1_addr}"; .port = "${s1_port}";} .weight =1; } | ||
} | ||
sub vcl_recv { | ||
set req.backend = foo; | ||
} | ||
} -start | ||
|
||
|
||
varnish v1 -vcl+backend { } | ||
|
||
varnish v1 -cliok "vcl.list" | ||
varnish v1 -cliok "vcl.discard vcl1" | ||
|
||
client c1 { | ||
txreq | ||
rxresp | ||
} -run | ||
|
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