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
a575331d
Commit
a575331d
authored
Apr 07, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore DATA received after stream closed
Fixes #2304
parent
cd54c184
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
cache_http2_proto.c
bin/varnishd/http2/cache_http2_proto.c
+2
-1
t02003.vtc
bin/varnishtest/tests/t02003.vtc
+32
-0
No files found.
bin/varnishd/http2/cache_http2_proto.c
View file @
a575331d
...
...
@@ -636,8 +636,9 @@ h2_rx_data(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
unsigned
wi
;
(
void
)
wrk
;
AN
(
r2
);
ASSERT_RXTHR
(
h2
);
if
(
r2
==
NULL
)
return
(
0
);
Lck_Lock
(
&
h2
->
sess
->
mtx
);
AZ
(
h2
->
mailcall
);
h2
->
mailcall
=
r2
;
...
...
bin/varnishtest/tests/t02003.vtc
View file @
a575331d
...
...
@@ -417,3 +417,35 @@ varnish v1 -expect MEMPOOL.req1.live == 0
varnish v1 -expect MEMPOOL.sess0.live == 0
varnish v1 -expect MEMPOOL.sess1.live == 0
#######################################################################
# Test DATA error conditions
client c1 {
stream 1 {
txdata -data "FOOBAR"
} -run
stream 0 {
rxgoaway
} -run
expect_close
} -run
client c1 {
stream 1 {
txreq
rxresp
txdata -data "FOOBAR"
} -run
stream 3 {
txreq
rxresp
} -run
} -run
varnish v1 -vsl_catchup
varnish v1 -expect MEMPOOL.req0.live == 0
varnish v1 -expect MEMPOOL.req1.live == 0
varnish v1 -expect MEMPOOL.sess0.live == 0
varnish v1 -expect MEMPOOL.sess1.live == 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