Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
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
Hide 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
...
@@ -1186,6 +1186,7 @@ enum req_fsm_nxt
CNT_Request
(
struct
worker
*
wrk
,
struct
req
*
req
)
CNT_Request
(
struct
worker
*
wrk
,
struct
req
*
req
)
{
{
enum
req_fsm_nxt
nxt
;
enum
req_fsm_nxt
nxt
;
struct
storage
*
st
;
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
...
@@ -1246,6 +1247,12 @@ CNT_Request(struct worker *wrk, struct req *req)
...
@@ -1246,6 +1247,12 @@ CNT_Request(struct worker *wrk, struct req *req)
req
->
t_resp
-
req
->
t_req
,
req
->
t_resp
-
req
->
t_req
,
req
->
sp
->
t_idle
-
req
->
t_resp
);
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 */
/* done == 2 was charged by cache_hash.c */
SES_Charge
(
wrk
,
req
);
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