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

[poc] middlewares: tcp: add rate limit #10468

Draft
wants to merge 1 commit into
base: v3.0
Choose a base branch
from

Conversation

dsseng
Copy link
Contributor

@dsseng dsseng commented Feb 24, 2024

What does this PR do?

Add a TCP rate limiter based on the HTTP one (I couldn't find what to improve to better fit TCP). It limits

Motivation

Fixes #5999

More

  • Added/updated tests - will do once design is approved
  • Added/updated documentation - partially perhaps

Additional Notes

Previous PRs in this direction were declined, so I'm not sure what else should be done to properly adapt to TCP. This implementation seems fine, only filtering connection attempts

Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com>
@traefiker traefiker added this to the 3.0 milestone Feb 24, 2024
@dsseng dsseng changed the title middlewares: tcp: add rate limit [poc] middlewares: tcp: add rate limit Feb 24, 2024
@ldez ldez marked this pull request as draft February 24, 2024 13:02
@dsseng
Copy link
Contributor Author

dsseng commented Feb 24, 2024

It's actually not mergeable, but requires a design review from maintainers to proceed. Are draft PRs reviewed?

@ldez
Copy link
Member

ldez commented Feb 24, 2024

By default, draft PRs are not reviewed.
Your PR is more draft than a mergeable PR.
Because it's a POC, the PR will be reviewed (at least partially).

@dberardo-com
Copy link

any news on this feature ? is it being implemented ?

@dsseng
Copy link
Contributor Author

dsseng commented Mar 18, 2024

Design needs to be reviewed by maintainers, as I want to be sure the feature is correctly implemented and only then document it and fulfill all the requirements

@dberardo-com
Copy link

ok, by the way is this rate limit working only on a number of session basis or can it work also on a tot. number of transmitted byte basis ?

@dsseng
Copy link
Contributor Author

dsseng commented Mar 18, 2024

The thing I did limits connection attempts, not amount of data transmitted

@nmengin nmengin modified the milestones: 3.0, next Apr 30, 2024
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.

None yet

5 participants