Skip to content

Commit

Permalink
Fix max_concurrent_streams check
Browse files Browse the repository at this point in the history
  • Loading branch information
xcir authored and Dridi committed Feb 21, 2019
1 parent f403938 commit 4d8e4b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/varnishd/http2/cache_http2_proto.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion bin/varnishtest/tests/t02012.vtc
Expand Up @@ -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;
Expand Down

0 comments on commit 4d8e4b9

Please sign in to comment.