Skip to content

fix: count reserved push promises against stream concurrency - #968

Merged
seanmonstar merged 1 commit into
masterfrom
sean/qsxkktlwtsvn
Oct 5, 2026
Merged

seanmonstar merged 1 commit into
masterfrom
sean/qsxkktlwtsvn

Conversation

@seanmonstar

Copy link
Copy Markdown
Member

The HTTP/2 spec says reserved streams for a PUSH_PROMISE do not count towards the concurrency advertised in max_concurrent_streams. But, uh, well, that's kind of crazy. The reserved streams still take resources to hold onto, just as any other stream would.

So, nah, they count. If you got too many, you'll get a REFUSED_STREAM. Too many of those and you'll get the normal GOAWAY from too_many_resets.

Sorry, it just makes sense.

The HTTP/2 spec says reserved streams for a PUSH_PROMISE do not count towards
the concurrency advertised in max_concurrent_streams. But, uh, well, that's
kind of crazy. The reserved streams still take resources to hold onto, just as
any other stream would.

So, nah, they count. If you got too many, you'll get a REFUSED_STREAM. Too many
of _those_ and you'll get the normal GOAWAY from too_many_resets.

Sorry, it just makes sense.
@seanmonstar
seanmonstar merged commit a26b427 into master Oct 5, 2026
8 checks passed
@seanmonstar
seanmonstar deleted the sean/qsxkktlwtsvn branch October 5, 2026 22:40
zR-JB pushed a commit to zR-JB/h2 that referenced this pull request Oct 6, 2026
…m#968)

The HTTP/2 spec says reserved streams for a PUSH_PROMISE do not count towards
the concurrency advertised in max_concurrent_streams. But, uh, well, that's
kind of crazy. The reserved streams still take resources to hold onto, just as
any other stream would.

So, nah, they count. If you got too many, you'll get a REFUSED_STREAM. Too many
of _those_ and you'll get the normal GOAWAY from too_many_resets.

Sorry, it just makes sense.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant