3.118.17. StreamMaxClients Previous topic Parent topic Child topic Next topic

This optional parameter specifies the maximum number of accepted connections for each listen socket. This parameter is not set by default. When the parameter is set to zero or unset, no restrictions apply. This parameter is available for all StreamServer based modules, such as <ServerDIAMETER> and <ServerRADSEC>.
With server farm, see FarmSize, this parameter allows distributing all incoming connections equally between worker processes. For example, if the number of connections is known not to exceed 10, a farm of 12 workers will have 2 spare workers with each of the 10 remaining workers handling one connection each.
Note
Currently this parameter is used as follows: All values larger than 0 are treated as 1.
# Allow one connection for each listen socket
StreamMaxClients 1