Fixed issue #1556 about limiting the network connections. Default is 1000 concurrent sockets