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
f992125b
Commit
f992125b
authored
Mar 27, 2012
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset output buffer on VGZ_WrwFlush()
Fixes: #1123
parent
0679d603
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
cache_gzip.c
bin/varnishd/cache/cache_gzip.c
+1
-0
r01123.vtc
bin/varnishtest/tests/r01123.vtc
+25
-0
No files found.
bin/varnishd/cache/cache_gzip.c
View file @
f992125b
...
...
@@ -366,6 +366,7 @@ VGZ_WrwFlush(const struct worker *wrk, struct vgz *vg)
(
void
)
WRW_Write
(
wrk
,
vg
->
m_buf
,
vg
->
m_len
);
(
void
)
WRW_Flush
(
wrk
);
vg
->
m_len
=
0
;
VGZ_Obuf
(
vg
,
vg
->
m_buf
,
vg
->
m_sz
);
}
/*--------------------------------------------------------------------*/
...
...
bin/varnishtest/tests/r01123.vtc
0 → 100644
View file @
f992125b
varnishtest "Test case for #1123 - gunzip buffer reset"
server s1 {
rxreq
txresp -body {
<html>
start
<esi:include
src=
"/included"
/>
end}
rxreq
expect req.url == "/included"
txresp -body {INCLUDED}
} -start
varnish v1 -vcl+backend {
sub vcl_fetch {
if (req.url == "/") {
set beresp.do_esi = true;
}
set beresp.do_gzip = true;
}
} -start
client c1 {
txreq
rxresp
expect resp.bodylen == 24
expect resp.body == "
<html>
start INCLUDED end"
} -run
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