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
b8efd99a
Commit
b8efd99a
authored
Apr 01, 2020
by
Dag Haavi Finstad
Committed by
Poul-Henning Kamp
May 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure we don't recycle a closed backend connection
Fixes: #3266
parent
1721a0b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
cache_http1_vfp.c
bin/varnishd/http1/cache_http1_vfp.c
+3
-0
r03266.vtc
bin/varnishtest/tests/r03266.vtc
+19
-0
No files found.
bin/varnishd/http1/cache_http1_vfp.c
View file @
b8efd99a
...
...
@@ -81,6 +81,9 @@ v1f_read(const struct vfp_ctx *vc, struct http_conn *htc, void *d, ssize_t len)
"%s"
,
vstrerror
(
errno
));
return
(
i
);
}
if
(
i
==
0
)
htc
->
doclose
=
SC_RESP_CLOSE
;
}
return
(
i
+
l
);
}
...
...
bin/varnishtest/tests/r03266.vtc
0 → 100644
View file @
b8efd99a
varnishtest "Don't recycle a closed backend connection"
# broken origin: sends eof-encoded HTTP/1.1 response
server s1 {
rxreq
send "HTTP/1.1 200 OK\r\n\r\n"
send "foobar"
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq
rxresp
} -run
varnish v1 -expect fetch_failed == 0
varnish v1 -expect fetch_eof == 1
varnish v1 -expect backend_recycle == 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