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
691e8839
Commit
691e8839
authored
Jan 23, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release the storage of the cached req.body when the request is done.
parent
b2930e5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
cache_req_fsm.c
bin/varnishd/cache/cache_req_fsm.c
+7
-0
No files found.
bin/varnishd/cache/cache_req_fsm.c
View file @
691e8839
...
...
@@ -1186,6 +1186,7 @@ enum req_fsm_nxt
CNT_Request
(
struct
worker
*
wrk
,
struct
req
*
req
)
{
enum
req_fsm_nxt
nxt
;
struct
storage
*
st
;
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
...
...
@@ -1246,6 +1247,12 @@ CNT_Request(struct worker *wrk, struct req *req)
req
->
t_resp
-
req
->
t_req
,
req
->
sp
->
t_idle
-
req
->
t_resp
);
while
(
!
VTAILQ_EMPTY
(
&
req
->
body
))
{
st
=
VTAILQ_FIRST
(
&
req
->
body
);
VTAILQ_REMOVE
(
&
req
->
body
,
st
,
list
);
STV_free
(
st
);
}
/* done == 2 was charged by cache_hash.c */
SES_Charge
(
wrk
,
req
);
...
...
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