Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-vslp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-vslp
Commits
36b4bffc
Commit
36b4bffc
authored
Jul 15, 2014
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify v01004.vtc to use backend_by_string_hash from a called sub
parent
55b6e90d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
v01004.vtc
src/tests/v01004.vtc
+8
-3
No files found.
src/tests/v01004.vtc
View file @
36b4bffc
...
...
@@ -27,6 +27,12 @@ varnish v1 -vcl+backend {
vd.init_hashcircle(25);
}
sub recv_sub {
if(req.url == "/3") {
set req.backend_hint = vd.backend_by_string_hash(req.http.X-Hash, RS);
}
}
sub vcl_recv {
if(req.url == "/1") {
set req.backend_hint = vd.backend_by_string("/eishoSu2");
...
...
@@ -34,9 +40,8 @@ varnish v1 -vcl+backend {
if(req.url == "/2") {
set req.backend_hint = vd.backend_by_string_hash("/eishoSu2", SHA256);
}
if(req.url == "/3") {
set req.backend_hint = vd.backend_by_string_hash("/oob3dahS", RS);
}
set req.http.X-Hash = "/oob3dahS";
call recv_sub;
return(pass);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment