Use max_users config option and deny access to new users if there are too many connected.