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
67e1cfad
Unverified
Commit
67e1cfad
authored
Sep 27, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imporove debug messages
parent
3d9a2f4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
vmod_zipflow.c
src/vmod_zipflow.c
+24
-5
sub-coalesce.vtc
src/vtc/sub-coalesce.vtc
+1
-1
No files found.
src/vmod_zipflow.c
View file @
67e1cfad
...
...
@@ -479,8 +479,11 @@ fill_meta(VRT_CTX, struct zipflow_request *zfr)
zfr
->
atime
=
ctx
->
now
;
if
(
zfr
->
mtime
<
0
)
zfr
->
mtime
=
get_lm
(
ctx
);
VSLb
(
ctx
->
vsl
,
SLT_Debug
,
"%s %o %f %f"
,
zfr
->
name
,
zfr
->
mode
,
zfr
->
atime
,
zfr
->
mtime
);
if
(
DO_DEBUG
(
DBG_PROCESSORS
))
{
VSLb
(
ctx
->
vsl
,
SLT_Debug
,
"zipflow meta "
"%s %o %f %f"
,
zfr
->
name
,
zfr
->
mode
,
zfr
->
atime
,
zfr
->
mtime
);
}
}
int
...
...
@@ -566,9 +569,20 @@ zft_iter_req_body(struct zipflow_top *zft)
static
int
vdp_zipflow_put
(
void
*
priv
,
void
const
*
ptr
,
size_t
len
)
{
int
r
;
if
(
ptr
!=
NULL
&&
len
==
0
)
return
(
0
);
return
(
VDP_bytes
(
priv
,
ptr
==
NULL
?
VDP_END
:
VDP_FLUSH
,
ptr
,
(
ssize_t
)
len
));
r
=
VDP_bytes
(
priv
,
ptr
==
NULL
?
VDP_END
:
VDP_FLUSH
,
ptr
,
(
ssize_t
)
len
);
if
(
DO_DEBUG
(
DBG_PROCESSORS
))
{
VSL
(
SLT_Debug
,
NO_VXID
,
"zipflow put r=%d priv=%p ptr=%p len=%zu"
,
r
,
priv
,
ptr
,
len
);
}
return
(
r
);
}
static
void
...
...
@@ -752,6 +766,11 @@ vdp_zipsub_bytes(struct vdp_ctx *vdc, enum vdp_action act, void **priv,
assert
(
len
>=
0
);
r
=
zip_data
(
zft
->
zip
,
ptr
,
(
size_t
)
len
,
act
==
VDP_END
?
1
:
0
);
if
(
DO_DEBUG
(
DBG_PROCESSORS
))
{
VSL
(
SLT_Debug
,
NO_VXID
,
"zipflow zip_data r=%d ptr=%p, len=%zd, end=%d"
,
r
,
ptr
,
len
,
act
==
VDP_END
?
1
:
0
);
}
if
(
r
)
{
VSLb
(
vdc
->
vsl
,
SLT_Error
,
"zip_data returned %d"
,
r
);
return
(
-
1
);
...
...
@@ -934,7 +953,7 @@ zfr_include(struct req *preq, struct zipflow_request *zfr)
if
(
s
==
REQ_FSM_DONE
)
break
;
DSL
(
DBG_WAITINGLIST
,
req
->
vsl
->
wid
,
"waiting for zipflow
(%d)"
,
(
int
)
s
);
"waiting for zipflow
%p"
,
zfr
);
assert
(
s
==
REQ_FSM_DISEMBARK
);
AN
(
zfr
->
cond
);
...
...
src/vtc/sub-coalesce.vtc
View file @
67e1cfad
...
...
@@ -12,7 +12,7 @@ server s1 {
txresp -bodylen 20480
} -start
varnish v1 -vcl+backend {
varnish v1 -
arg "-p debug=+waitinglist" -
vcl+backend {
import zipflow;
sub vcl_recv {
...
...
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