Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-zipflow
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-zipflow
Commits
79abae95
Unverified
Commit
79abae95
authored
Aug 21, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move sending VDP_END to vdp_zipflow_put
parent
326a225c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
vmod_zipflow.c
src/vmod_zipflow.c
+5
-6
No files found.
src/vmod_zipflow.c
View file @
79abae95
...
...
@@ -395,10 +395,8 @@ static int
vdp_zipflow_put
(
void
*
priv
,
void
const
*
ptr
,
size_t
len
)
{
if
(
ptr
==
NULL
||
len
==
0
)
return
(
0
);
return
(
VDP_bytes
(
priv
,
VDP_FLUSH
,
ptr
,
(
ssize_t
)
len
));
return
(
VDP_bytes
(
priv
,
ptr
==
NULL
?
VDP_END
:
VDP_FLUSH
,
ptr
,
(
ssize_t
)
len
));
}
static
void
...
...
@@ -486,13 +484,14 @@ vdp_zipflow_bytes(struct vdp_ctx *vdc, enum vdp_action act, void **priv,
struct
zipflow_top
*
zft
;
int
r
;
(
void
)
vdc
;
AN
(
priv
);
CAST_OBJ_NOTNULL
(
zfr
,
*
priv
,
ZIPFLOW_REQUEST_MAGIC
);
zft
=
zfr
->
top
;
CHECK_OBJ_NOTNULL
(
zft
,
ZIPFLOW_TOP_MAGIC
);
if
(
zfr
->
bundle
==
0
)
{
(
void
)
zip_close
(
zft
->
zip
);
return
(
1
);
return
(
0
);
}
assert
(
len
>=
0
);
r
=
zip_data
(
zft
->
zip
,
ptr
,
(
size_t
)
len
,
act
==
VDP_END
?
1
:
0
);
...
...
@@ -509,5 +508,5 @@ vdp_zipflow_bytes(struct vdp_ctx *vdc, enum vdp_action act, void **priv,
if
(
r
)
VSLb
(
vdc
->
vsl
,
SLT_Error
,
"zip_close returned %d"
,
r
);
memset
(
zfr
,
0
,
sizeof
*
zfr
);
return
(
VDP_bytes
(
vdc
,
VDP_END
,
NULL
,
(
size_t
)
0
)
);
return
(
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