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
0938a2ed
Commit
0938a2ed
authored
Feb 27, 2012
by
Poul-Henning Kamp
Committed by
Tollef Fog Heen
May 23, 2012
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
f262a571
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
cache_center.c
bin/varnishd/cache_center.c
+7
-0
No files found.
bin/varnishd/cache_center.c
View file @
0938a2ed
...
...
@@ -276,6 +276,13 @@ cnt_deliver(struct sess *sp)
RES_WriteObj
(
sp
);
/* No point in saving the body if it is hit-for-pass */
if
(
sp
->
obj
->
objcore
!=
NULL
)
{
CHECK_OBJ_NOTNULL
(
sp
->
obj
->
objcore
,
OBJCORE_MAGIC
);
if
(
sp
->
obj
->
objcore
->
flags
&
OC_F_PASS
)
STV_Freestore
(
sp
->
obj
);
}
assert
(
WRW_IsReleased
(
sp
->
wrk
));
assert
(
sp
->
wrk
->
wrw
.
ciov
==
sp
->
wrk
->
wrw
.
siov
);
(
void
)
HSH_Deref
(
sp
->
wrk
,
NULL
,
&
sp
->
obj
);
...
...
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