Added check the serv->max_connection.