Commit 4d8e4b9c authored by Shohei Tanaka(@xcir)'s avatar Shohei Tanaka(@xcir) Committed by Dridi Boukelmoune

Fix max_concurrent_streams check

parent f403938c
......@@ -634,7 +634,7 @@ h2_rx_headers(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
if (r2 == NULL) {
if (h2->rxf_stream <= h2->highest_stream)
return (H2CE_PROTOCOL_ERROR); // rfc7540,l,1153,1158
if (h2->refcnt >= h2->local_settings.max_concurrent_streams) {
if (h2->refcnt > h2->local_settings.max_concurrent_streams) {
VSLb(h2->vsl, SLT_Debug,
"H2: stream %u: Hit maximum number of "
"concurrent streams", h2->rxf_stream);
......
......@@ -12,7 +12,7 @@ server s1 {
varnish v1 -cliok "param.set feature +http2"
varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set h2_max_concurrent_streams 3"
varnish v1 -cliok "param.set h2_max_concurrent_streams 2"
varnish v1 -vcl+backend {
import vtc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment