]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] report list of supported pollers with -vv
authorWilly Tarreau <w@1wt.eu>
Sat, 3 Oct 2009 16:57:08 +0000 (18:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 3 Oct 2009 18:06:16 +0000 (20:06 +0200)
During troubleshooting, it's often useful to get the list of supported
pollers but until now it was required to have a working configuration
first. Since the pollers are known before main() is called, let's list
them with the build options.

Also report the default MAXCONN setting.

(cherry picked from commit be5b68584e09b7760230a4ba54278af17e0455f3)

src/haproxy.c

index 451227f48590a9576d303acb7166c345adfc9a65..0f16bac1feed03adf9ec6358a29afe3b47e54f11 100644 (file)
@@ -183,7 +183,13 @@ void display_build_opts()
 #ifdef BUILD_OPTIONS
               "\n  OPTIONS = " BUILD_OPTIONS
 #endif
-              "\n\n");
+              "\n\nDefault settings :"
+              "\n  maxconn = %d, maxpollevents = %d"
+              "\n\n",
+              DEFAULT_MAXCONN, MAX_POLL_EVENTS);
+
+       list_pollers(stdout);
+       putchar('\n');
 }
 
 /*