Added ways to control async connect and number of parallel sockets.