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
62b5e3f4
Commit
62b5e3f4
authored
Feb 22, 2016
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close piped sessions in the absence of backends
Fixes #1815
parent
bcdcdbf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
cache_pipe.c
bin/varnishd/cache/cache_pipe.c
+7
-0
r01815.vtc
bin/varnishtest/tests/r01815.vtc
+19
-0
No files found.
bin/varnishd/cache/cache_pipe.c
View file @
62b5e3f4
...
...
@@ -113,6 +113,13 @@ PipeRequest(struct req *req, struct busyobj *bo)
acct_pipe
.
req
=
req
->
acct
.
req_hdrbytes
;
req
->
acct
.
req_hdrbytes
=
0
;
if
(
bo
->
director
==
NULL
)
{
VSLb
(
bo
->
vsl
,
SLT_FetchError
,
"No backend"
);
pipecharge
(
req
,
&
acct_pipe
,
NULL
);
SES_Close
(
req
->
sp
,
SC_OVERLOAD
);
return
;
}
vc
=
VDI_GetFd
(
bo
);
if
(
vc
==
NULL
)
{
VSLb
(
bo
->
vsl
,
SLT_FetchError
,
"no backend connection"
);
...
...
bin/varnishtest/tests/r01815.vtc
0 → 100644
View file @
62b5e3f4
varnishtest "backend unreachable on piped request"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import ${vmod_debug};
sub vcl_recv {
set req.backend_hint = debug.no_backend();
}
} -start
client c1 {
txreq -req PROPFIND
expect_close
} -run
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