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

lib.network: introduce connect ratelimit #609

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

Morg42
Copy link
Member

@Morg42 Morg42 commented Dec 12, 2023

Limit connection attempts if connection is closed immediately after connecting. At the moment, the limit is set to 1 try per second, and after 10 connection attempts hitting the rate limit, the connection attempts are canceled.

At the moment, this is only implemented for TcpClient(). The parameters can be set according to needs in the init call.

@Morg42 Morg42 merged commit 97e155b into smarthomeNG:develop Dec 14, 2023
5 checks passed
@Morg42 Morg42 deleted the ratelimit branch December 14, 2023 15:47
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