Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
bb3d027b
Unverified
Commit
bb3d027b
authored
Feb 28, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that transports call VDP_Close()
parent
20aee1b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
cache_deliver_proc.c
bin/varnishd/cache/cache_deliver_proc.c
+9
-1
cache_req.c
bin/varnishd/cache/cache_req.c
+2
-0
cache_varnishd.h
bin/varnishd/cache/cache_varnishd.h
+1
-0
No files found.
bin/varnishd/cache/cache_deliver_proc.c
View file @
bb3d027b
...
...
@@ -59,7 +59,15 @@ VDP_Panic(struct vsb *vsb, const struct vdp_ctx *vdc)
VSB_cat
(
vsb
,
"},
\n
"
);
}
/*
* Ensure that transports have called VDP_Close()
* to avoid leaks in VDPs
*/
void
VDP_Fini
(
struct
vdp_ctx
*
vdc
)
{
assert
(
VTAILQ_EMPTY
(
&
vdc
->
vdp
));
}
void
VDP_Init
(
struct
vdp_ctx
*
vdc
,
struct
worker
*
wrk
,
struct
vsl_log
*
vsl
,
...
...
bin/varnishd/cache/cache_req.c
View file @
bb3d027b
...
...
@@ -313,6 +313,8 @@ Req_Cleanup(struct sess *sp, struct worker *wrk, struct req *req)
wrk
->
stats
->
ws_client_overflow
++
;
wrk
->
seen_methods
=
0
;
VDP_Fini
(
req
->
vdc
);
}
/*----------------------------------------------------------------------
...
...
bin/varnishd/cache/cache_varnishd.h
View file @
bb3d027b
...
...
@@ -189,6 +189,7 @@ void VDI_Event(const struct director *d, enum vcl_event_e ev);
void
VDI_Init
(
void
);
/* cache_deliver_proc.c */
void
VDP_Fini
(
struct
vdp_ctx
*
vdc
);
void
VDP_Init
(
struct
vdp_ctx
*
vdc
,
struct
worker
*
wrk
,
struct
vsl_log
*
vsl
,
struct
req
*
req
);
uint64_t
VDP_Close
(
struct
vdp_ctx
*
,
struct
objcore
*
,
struct
boc
*
);
...
...
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