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
c082835a
Commit
c082835a
authored
Feb 27, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop the body of hit-for-pass objects once we have delivered them to
the original requester. Submitted by: DocWilco
parent
195b6017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
cache_center.c
bin/varnishd/cache/cache_center.c
+8
-0
No files found.
bin/varnishd/cache/cache_center.c
View file @
c082835a
...
...
@@ -327,6 +327,7 @@ cnt_deliver(struct sess *sp, struct worker *wrk, struct req *req)
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
->
obj
,
OBJECT_MAGIC
);
AZ
(
req
->
busyobj
);
req
->
director
=
NULL
;
...
...
@@ -334,6 +335,13 @@ cnt_deliver(struct sess *sp, struct worker *wrk, struct req *req)
RES_WriteObj
(
sp
);
/* No point in saving the body if it is hit-for-pass */
if
(
req
->
obj
->
objcore
!=
NULL
)
{
CHECK_OBJ_NOTNULL
(
req
->
obj
->
objcore
,
OBJCORE_MAGIC
);
if
(
req
->
obj
->
objcore
->
flags
&
OC_F_PASS
)
STV_Freestore
(
req
->
obj
);
}
assert
(
WRW_IsReleased
(
wrk
));
(
void
)
HSH_Deref
(
&
wrk
->
stats
,
NULL
,
&
req
->
obj
);
http_Teardown
(
req
->
resp
);
...
...
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