Optional max_connections for mememory leak error