Browse Source

Show (dbglevel 1) the number of file descriptors available.

default 2 years ago
parent
commit
5f89816bb4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      httpd.c

+ 2 - 1
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 */