Is there a way to limit number of active connections?