Pool: don't allocate more connections than needed