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
c717cf00
Commit
c717cf00
authored
Jan 16, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix double-logging of synth 503 beresp.
parent
9c599baa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+2
-3
No files found.
bin/varnishd/cache/cache_fetch.c
View file @
c717cf00
...
...
@@ -145,7 +145,6 @@ make_it_503(struct busyobj *bo)
{
HTTP_Setup
(
bo
->
beresp
,
bo
->
ws
,
bo
->
vsl
,
SLT_BerespMethod
);
http_SetH
(
bo
->
beresp
,
HTTP_HDR_PROTO
,
"HTTP/1.1"
);
http_SetResp
(
bo
->
beresp
,
"HTTP/1.1"
,
503
,
"Backend fetch failed"
);
http_SetHeader
(
bo
->
beresp
,
"Content-Length: 0"
);
http_SetHeader
(
bo
->
beresp
,
"Connection: close"
);
...
...
@@ -193,9 +192,9 @@ vbf_stp_fetchhdr(struct worker *wrk, struct busyobj *bo)
make_it_503
(
bo
);
}
else
{
AN
(
bo
->
vbc
);
http_VSL_log
(
bo
->
beresp
);
}
http_VSL_log
(
bo
->
beresp
);
/*
* These two headers can be spread over multiple actual headers
...
...
@@ -248,7 +247,7 @@ vbf_stp_fetchhdr(struct worker *wrk, struct busyobj *bo)
}
if
(
bo
->
state
==
BOS_REQ_DONE
)
VBO_setstate
(
bo
,
BOS_COMMITTED
);
VBO_setstate
(
bo
,
BOS_COMMITTED
);
if
(
bo
->
do_esi
)
bo
->
do_stream
=
0
;
...
...
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