Fixing connection count when max_conns=infinity

The value is set to 0 by default to fit other behaviours in similar
circumstances.
Adding tests with max_conns=infinity