From bb2f213ac35b1455c66cb89acf305f3d5950adc7 Mon Sep 17 00:00:00 2001 From: strawberry Date: Sun, 7 Jan 2024 21:23:42 -0500 Subject: [PATCH] more helpful panic msg on failing to increase soft/hard FD limits this can be caused by security policies, hardening, etc Signed-off-by: strawberry --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 84ab470e..15c045c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,7 +142,7 @@ async fn main() { // * https://www.freedesktop.org/software/systemd/man/systemd.exec.html#id-1.12.2.1.17.6 // * https://github.com/systemd/systemd/commit/0abf94923b4a95a7d89bc526efc84e7ca2b71741 #[cfg(unix)] - maximize_fd_limit().expect("should be able to increase the soft limit to the hard limit"); + maximize_fd_limit().expect("Unable to increase maximum soft and hard file descriptor limit"); config.warn_deprecated(); if config.is_dual_listening(raw_config) {