deduct the max number of connections using getrlimit

instead of requiring to provide it at construction time