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
f2a0acec
Commit
f2a0acec
authored
Mar 13, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly bail if there is insuficient storage for ESI data clone
on IMS fetch.
parent
3ae1b7a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+12
-6
No files found.
bin/varnishd/cache/cache_fetch.c
View file @
f2a0acec
...
...
@@ -579,12 +579,18 @@ vbf_stp_condfetch(struct worker *wrk, struct busyobj *bo)
obj
=
bo
->
fetch_obj
;
if
(
bo
->
ims_obj
->
esidata
!=
NULL
)
{
obj
->
esidata
=
STV_alloc
(
bo
,
bo
->
ims_obj
->
esidata
->
len
);
XXXAN
(
obj
->
esidata
);
xxxassert
(
obj
->
esidata
->
space
>=
bo
->
ims_obj
->
esidata
->
len
);
memcpy
(
obj
->
esidata
->
ptr
,
bo
->
ims_obj
->
esidata
->
ptr
,
bo
->
ims_obj
->
esidata
->
len
);
obj
->
esidata
->
len
=
bo
->
ims_obj
->
esidata
->
len
;
sl
=
bo
->
ims_obj
->
esidata
->
len
;
obj
->
esidata
=
STV_alloc
(
bo
,
sl
);
if
(
obj
->
esidata
==
NULL
||
obj
->
esidata
->
space
<
sl
)
{
VSLb
(
bo
->
vsl
,
SLT_Error
,
"No space for %zd bytes of ESI data"
,
sl
);
HSH_Fail
(
bo
->
fetch_objcore
);
VBO_setstate
(
bo
,
BOS_FAILED
);
HSH_Complete
(
obj
->
objcore
);
return
(
F_STP_DONE
);
}
memcpy
(
obj
->
esidata
->
ptr
,
bo
->
ims_obj
->
esidata
->
ptr
,
sl
);
obj
->
esidata
->
len
=
sl
;
}
obj
->
gziped
=
bo
->
ims_obj
->
gziped
;
...
...
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