diff options
author | Willy Tarreau <w@1wt.eu> | 2009-10-03 18:57:08 +0200 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2009-10-03 20:06:16 +0200 |
commit | ac317992c96ab82c7a650d01efa07ed1861e6830 (patch) | |
tree | 17fe0ad8884344caaeae7992379f7db77baf37d8 /src | |
parent | 4f9290afb32e69e732c7766d166aacd07fbee6b9 (diff) | |
download | haproxy-ac317992c96ab82c7a650d01efa07ed1861e6830.tar.gz |
[MINOR] report list of supported pollers with -vv
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/haproxy.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/haproxy.c b/src/haproxy.c index 451227f48..0f16bac1f 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -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'); } /* |