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
a90a35f5
Commit
a90a35f5
authored
Mar 11, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set OA_LEN or req.body oc and dont iterate it if zero.
parent
db211ebf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cache_req_body.c
bin/varnishd/cache/cache_req_body.c
+3
-2
No files found.
bin/varnishd/cache/cache_req_body.c
View file @
a90a35f5
...
...
@@ -118,6 +118,7 @@ vrb_pull(struct req *req, ssize_t maxsize, objiterate_f *func, void *priv)
}
ObjTrimStore
(
req
->
wrk
,
req
->
body_oc
);
AZ
(
ObjSetU64
(
req
->
wrk
,
req
->
body_oc
,
OA_LEN
,
req
->
req_bodybytes
));
HSH_DerefBoc
(
req
->
wrk
,
req
->
body_oc
);
if
(
vfps
!=
VFP_END
)
{
...
...
@@ -163,8 +164,8 @@ VRB_Iterate(struct req *req, objiterate_f *func, void *priv)
switch
(
req
->
req_body_status
)
{
case
REQ_BODY_CACHED
:
if
(
ObjIterate
(
req
->
wrk
,
req
->
body_oc
,
priv
,
func
))
if
(
req
->
req_bodybytes
>
0
&&
ObjIterate
(
req
->
wrk
,
req
->
body_oc
,
priv
,
func
))
return
(
-
1
);
return
(
0
);
case
REQ_BODY_NONE
:
...
...
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