Close the connection when in interactive mode.
set maxconn frontend <frontend> <value>
- Dynamically change the specified frontend's maxconn setting. Any non-null
- positive value is allowed, but setting values larger than the global maxconn
- does not make much sense. If the limit is increased and connections were
- pending, they will immediately be accepted. If it is lowered to a value below
- the current number of connections, new connections acceptation will be
+ Dynamically change the specified frontend's maxconn setting. Any positive
+ value is allowed including zero, but setting values larger than the global
+ maxconn does not make much sense. If the limit is increased and connections
+ were pending, they will immediately be accepted. If it is lowered to a value
+ below the current number of connections, new connections acceptation will be
delayed until the threshold is reached. The frontend might be specified by
either its name or its numeric ID prefixed with a sharp ('#').
}
v = atoi(args[4]);
- /* check for unlimited values, we restore default setting (cfg_maxpconn) */
- if (v < 1) {
+ if (v < 0) {
si->applet.ctx.cli.msg = "Value out of range.\n";
si->applet.st0 = STAT_CLI_PRINT;
return 1;