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
2b216210
Commit
2b216210
authored
Mar 12, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also move dropping failed objects to FetchBody()
parent
0041032c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
cache_center.c
bin/varnishd/cache/cache_center.c
+1
-4
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+1
-0
No files found.
bin/varnishd/cache/cache_center.c
View file @
2b216210
...
...
@@ -917,12 +917,9 @@ cnt_fetchbody(struct sess *sp, struct worker *wrk, struct req *req)
assert
(
bo
->
state
>=
BOS_FAILED
);
assert
(
WRW_IsReleased
(
wrk
));
AZ
(
bo
->
vbc
);
AN
(
req
->
director
);
if
(
bo
->
state
==
BOS_FAILED
)
{
HSH_Drop
(
wrk
,
&
req
->
obj
);
AZ
(
req
->
obj
);
req
->
obj
=
NULL
;
VBO_DerefBusyObj
(
wrk
,
&
req
->
busyobj
);
req
->
err_code
=
503
;
sp
->
step
=
STP_ERROR
;
...
...
bin/varnishd/cache/cache_fetch.c
View file @
2b216210
...
...
@@ -647,6 +647,7 @@ FetchBody(struct worker *wrk, void *priv)
wrk
->
stats
.
fetch_failed
++
;
VDI_CloseFd
(
&
bo
->
vbc
);
obj
->
len
=
0
;
HSH_Drop
(
wrk
,
&
obj
);
}
else
{
assert
(
bo
->
state
==
BOS_FETCHING
);
...
...
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