Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
9284b8b6
Commit
9284b8b6
authored
Apr 14, 2017
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework test to work in both 32 and 64 bits
parent
dff3c2be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
r02233.vtc
bin/varnishtest/tests/r02233.vtc
+13
-9
No files found.
bin/varnishtest/tests/r02233.vtc
View file @
9284b8b6
varnishtest "Fail earlier if we cannot fit the query string"
feature 64bit
server s1 {
rxreq
txresp
} -start
varnish v1 -arg "-p workspace_client=9k" -vcl+backend {
varnish v1 -vcl+backend {
import debug;
import std;
sub vcl_recv {
set req.url = std.querysort(req.url);
debug.workspace_allocate(client, -92);
if (std.querysort(req.url) == req.url) {
std.log("querysort failed");
}
}
} -start
logexpect l1 -v v1 {
expect * * VCL_Log "querysort failed"
} -start
client c1 {
send "GET /?a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1"
send "&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1"
send "&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1"
send " HTTP/1.1\r\n"
send "Host: foo\r\n\r\n"
txreq -url /?a=2&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1&a=1
rxresp
expect resp.status == 500
} -run
logexpect l1 -wait
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