Cloudstack-2997: the maxconn setting is masked by wrong conditions