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: Warn operator when fd limit is set too large #15282

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

donaldsharp
Copy link
Member

It's unlikely that an operator will ever set a fd
limit of over 100k. Let's warn the operator that
things are in a bit of a wonky state.

Fixes: #15280

It's unlikely that an operator will ever set a fd
limit of over 100k.  Let's warn the operator that
things are in a bit of a wonky state.

Fixes: FRRouting#15280
Signed-off-by: Donald Sharp <[email protected]>
@ton31337 ton31337 added this to the 10.0 milestone Feb 2, 2024
@@ -543,6 +543,7 @@ static void initializer(void)
pthread_key_create(&thread_current, NULL);
}

#define STUPIDLY_LARGE_FD_SIZE 100000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this.

@ton31337 ton31337 merged commit 4ec8522 into FRRouting:master Feb 2, 2024
13 checks passed
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.

Failed to allocate 8589934528 bytes when limit-fds is omitted
2 participants