set maxConnections