Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h2: Add a rate limit facility for h/2 RST handling (6.0) #4008

Merged
merged 10 commits into from
Oct 18, 2023

Conversation

dridi
Copy link
Member

@dridi dridi commented Oct 18, 2023

This is a port of #3997 and #3999 mostly performed by @daghf.

asadsa92 and others added 10 commits October 18, 2023 17:33
This should make the code easier to read and stop us from being inconsistent.

Signed-off-by: Asad Sajjad Ahmed <[email protected]>
This adds parameters h2_rapid_reset_limit and h2_rapid_reset_period,
which govern the rate of which we permit clients to reset streams.

If the limit is exceeded the connection is closed.

Related to: varnishcache#1851

Conflicts:
	include/tbl/params.h
Conflicts:
	bin/varnishd/VSC_main.vsc
	include/tbl/sess_close.h
Only RST frames received earlier than this duration will be considered
rapid.

Includes backports of the following upstream doc-touchups:
- 151f4d5
- 46d4f82

Conflicts:
	include/tbl/params.h
backport of f820f80

Conflicts:
	include/tbl/params.h
Backport of 2cfb561 and 1a406e3

Conflicts:
	bin/varnishtest/vmods.h
	configure.ac
	lib/Makefile.am
we can not make the parameter const because API.
@dridi
Copy link
Member Author

dridi commented Oct 18, 2023

Once again, failing tests are timing out and registered in #4002, ready to merge.

@dridi dridi merged commit b9ef357 into varnishcache:6.0 Oct 18, 2023
@dridi dridi deleted the pulls_3997_3999_6.0 branch October 18, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants