]> 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>
Tue, 14 Jul 2009 18:15:37 +0000 (20:15 +0200)
The only way to set this previously was to set SYSTEM_MAXCONN
which serves a different purpose.
(cherry picked from commit c9fe4562c24ebacdfdf55631636e5a5a0395e43c)

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