]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] make DEFAULT_MAXCONN user-configurable at build time
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Jun 2009 14:33:36 +0000 (16:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Jun 2009 14:34:03 +0000 (16:34 +0200)
The only way to set this previously was to set SYSTEM_MAXCONN
which serves a different purpose.

include/common/defaults.h

index cdc6b7f0230206f5f1b9fce4a04864767d05498f..9d65f9caab3f245d9b52f33e296bfabb341ba6dd 100644 (file)
  * command-line '-n' argument.
  */
 #ifndef SYSTEM_MAXCONN
+#ifndef DEFAULT_MAXCONN
 #define DEFAULT_MAXCONN 2000
+#endif
 #else
+#undef  DEFAULT_MAXCONN
 #define DEFAULT_MAXCONN SYSTEM_MAXCONN
 #endif