From 5f89816bb42b4cc66d87ae419803f0a081b0108c Mon Sep 17 00:00:00 2001 From: default Date: Fri, 10 Feb 2023 13:45:26 +0100 Subject: [PATCH] Show (dbglevel 1) the number of file descriptors available. --- httpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpd.c b/httpd.c index cf9dd95..20177e6 100644 --- a/httpd.c +++ b/httpd.c @@ -419,9 +419,10 @@ void httpd(void) srv_log(xs_fmt("httpd start %s:%d %s", address, port, USER_AGENT)); + /* show the number of usable file descriptors */ struct rlimit r; getrlimit(RLIMIT_NOFILE, &r); - srv_debug(0, xs_fmt("available (rlimit) fds: %d (cur)/%d (max)", + srv_debug(1, xs_fmt("available (rlimit) fds: %d (cur) / %d (max)", (int) r.rlim_cur, (int) r.rlim_max)); /* initialize the job control engine */