1.apache ftpserver1.0.6设置最大连接数和最大登录数问题
apache ftpserver1.0.6设置最大连接数和最大登录数问题
listenerFactory.setPort(Integer.parseInt(ftpport));
ftpServerFactory.addListener("default",码运调度优化源码 listenerFactory
.createListener());
ConnectionConfigFactory connectionConfigFactory = new ConnectionConfigFactory();
connectionConfigFactory.setMaxLogins();
ConnectionConfig connectionConfig = connectionConfigFactory.createConnectionConfig();
ftpServerFactory.setConnectionConfig(connectionConfig);
调用createConnectionConfig方法就可以了