Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdp-pesi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
libvdp-pesi
Commits
bd983f0b
Commit
bd983f0b
authored
Jul 30, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
because we don't flush in _fini, we need to always flush...
parent
98962a73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
cache_esi_deliver.c
src/foreign/cache_esi_deliver.c
+11
-2
No files found.
src/foreign/cache_esi_deliver.c
View file @
bd983f0b
...
...
@@ -171,6 +171,15 @@ vped_gzgz_init(struct req *req, void **priv)
return
(
0
);
}
/*
* we removed a NULL VDP_FLUSH from _fini because in our code it goes to the
* _toparent vdp on the same request, rather than one request up as in the
* original code.
*
* thus our VDP_bytes all have to flush
*
* XXX revisit maybe...
*/
static
int
v_matchproto_
(
vdp_bytes_f
)
vped_gzgz_bytes
(
struct
req
*
req
,
enum
vdp_action
act
,
void
**
priv
,
const
void
*
ptr
,
ssize_t
len
)
...
...
@@ -211,7 +220,7 @@ vped_gzgz_bytes(struct req *req, enum vdp_action act, void **priv,
/* Remove the "LAST" bit */
foo
->
dbits
[
0
]
=
*
pp
;
foo
->
dbits
[
0
]
&=
~
(
1U
<<
(
foo
->
last
&
7
));
if
(
VDP_bytes
(
req
,
act
,
foo
->
dbits
,
1
))
if
(
VDP_bytes
(
req
,
VDP_FLUSH
,
foo
->
dbits
,
1
))
return
(
-
1
);
foo
->
ll
++
;
len
--
;
...
...
@@ -285,7 +294,7 @@ vped_gzgz_bytes(struct req *req, enum vdp_action act, void **priv,
default:
WRONG
(
"compiler must be broken"
);
}
if
(
VDP_bytes
(
req
,
act
,
foo
->
dbits
+
1
,
foo
->
lpad
))
if
(
VDP_bytes
(
req
,
VDP_FLUSH
,
foo
->
dbits
+
1
,
foo
->
lpad
))
return
(
-
1
);
}
if
(
len
>
0
)
{
...
...
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