Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
Commits
3e1787cd
Commit
3e1787cd
authored
Dec 15, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove two old relics
parent
9f4bb5a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
97 deletions
+0
-97
c.sh
bin/varnishd/c.sh
+0
-15
s.sh
bin/varnishd/s.sh
+0
-82
No files found.
bin/varnishd/c.sh
deleted
100644 → 0
View file @
9f4bb5a3
#!/bin/sh
# A client side script to test the ESI parsing, see s.sh for serverside
set
-e
echo
"[2J"
while
true
do
sleep
1
echo
"[H"
fetch
-o
-
-q
http://localhost:8080/ | hexdump
-C
|
sed
's/$/[K/'
echo
"[J"
done
bin/varnishd/s.sh
deleted
100644 → 0
View file @
9f4bb5a3
#!/bin/sh
# A server side test-script for pushing the ESI XML parser over a
# storage boundary.
# The crucial trick here is that we send these objects HTTP/0.9 style
# so that cache_fetch puts the first 128k in one storage object and
# the rest in another, thus by putting around 128K space in our test
# data we can put it right before, over and after the storage boundary.
#
# Use c.sh as the client side, and run varnish with this vcl:
#
# backend b1 {
# set backend.host = "Localhost";
# set backend.port = "8081";
# }
#
# sub vcl_recv {
# pass;
# }
#
# sub vcl_fetch {
# esi;
# }
serve
()
(
(
echo
'HTTP/1.0 200 OK'
echo
''
echo
"
$1
"
dd
if
=
/dev/zero
bs
=
$2
count
=
1 2>/dev/null |
tr
'\0'
' '
cat
sleep
.1
)
| nc
-l
8081
)
if
false
;
then
echo
-n
"<esi:remove> foo </esi:remove> bar"
| serve Test01 1
echo
-n
"<esi:remove> foo </esi:remove> bar"
| serve Test02 2
# Unterminated CDATA
echo
-n
"<esi:remove> foo </esi:remove> { <![CDATA[foo]] }"
| serve Test03 10
for
i
in
`
jot 40 131020
`
do
echo
-n
"<esi:remove> foo </esi:remove> bar"
| serve Test04::
$i
$i
done
for
i
in
`
jot 40 131036
`
do
echo
-n
"<!--esi foo --> bar"
| serve Test05::
$i
$i
done
for
i
in
`
jot 22 131040
`
do
echo
-n
"<![CDATA[foo]]>"
| serve Test06::
$i
$i
done
echo
-n
"<esi:remove> "
| serve Test07 10
echo
-n
"<!--esi "
| serve Test08 10
for
i
in
`
jot 10 131042
`
do
echo
-n
" > "
| serve
"Test09:
$i
<esi:remove"
$i
done
(
echo
-n
"<esi:remove "
dd
if
=
/dev/zero
bs
=
32768
count
=
1 2>/dev/null |
tr
'\0'
' '
echo
-n
">"
)
| serve
"Test10"
131030
echo
-n
" ]]> "
| serve
"Test11:131048 <![CDATA[ "
131048
echo
-n
" bar"
| serve
"Test12 foo <esi:comment comment=
\"
Humbug!
\"
/> "
1
echo
-n
" bar"
| serve
"Test13 foo <esi:foo> "
1
fi
while
true
do
echo
-n
" <esi:say "
Hi Mom
">"
| serve
"Test13 foo <esi:foo> "
1
done
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