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
f4e7c967
Unverified
Commit
f4e7c967
authored
Dec 10, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear catflap when rolling back
Fixes #3752
parent
91f998e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
cache_req.c
bin/varnishd/cache/cache_req.c
+1
-0
m00051.vtc
bin/varnishtest/tests/m00051.vtc
+10
-0
No files found.
bin/varnishd/cache/cache_req.c
View file @
f4e7c967
...
...
@@ -235,6 +235,7 @@ Req_Rollback(VRT_CTX)
VCL_TaskEnter
(
req
->
top
->
privs
);
HTTP_Clone
(
req
->
http
,
req
->
http0
);
req
->
filter_list
=
NULL
;
req
->
vcf
=
NULL
;
if
(
WS_Overflowed
(
req
->
ws
))
req
->
wrk
->
stats
->
ws_client_overflow
++
;
AN
(
req
->
ws_req
);
...
...
bin/varnishtest/tests/m00051.vtc
View file @
f4e7c967
...
...
@@ -2,6 +2,7 @@ varnishtest "catflap"
varnish v1 -vcl {
import debug;
import std;
backend dummy { .host = "${bad_backend}"; }
...
...
@@ -15,6 +16,11 @@ varnish v1 -vcl {
} else if (req.http.novcf) {
set req.http.consume = "some workspace";
return (pass);
} else if (req.http.rollback) {
debug.catflap(first);
std.rollback(req);
set req.http.consume = "some workspace";
set req.http.consume = "some workspace";
} else {
return (fail);
}
...
...
@@ -71,6 +77,10 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.http.id == "3"
txreq -hdr "rollback: yes"
rxresp
expect resp.status == 200
expect resp.http.id == "3"
txreq -hdr "novcf: yes"
rxresp
expect resp.status == 206
...
...
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