Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 防止Apache httpcore遭受慢速拒绝服务攻击_Java_Apache Httpcomponents_Ddos_Apache Httpasyncclient - Fatal编程技术网

Java 防止Apache httpcore遭受慢速拒绝服务攻击

Java 防止Apache httpcore遭受慢速拒绝服务攻击,java,apache-httpcomponents,ddos,apache-httpasyncclient,Java,Apache Httpcomponents,Ddos,Apache Httpasyncclient,我使用ApacheHttpCore库监听http请求,如下所示 IOReactorConfig config = IOReactorConfig.custom() // Create instance of a custom Builder .setTcpNoDelay(true) // // Enable/disable SO_TIMEOUT with the specified timeout, in milli

我使用ApacheHttpCore库监听http请求,如下所示

IOReactorConfig config = IOReactorConfig.custom() // Create instance of a custom Builder
                    .setTcpNoDelay(true) //
                    // Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds. InputStream associated
                    // with this Socket will block for only this amount of time. If the timeout expires, a
                    // java.net.SocketTimeoutException
                    // is raised, though the Socket is still valid. The option must be enabled prior to entering the
                    // blocking operation to have effect. The timeout must be > 0. A timeout of zero is interpreted
                    // as an infinite timeout.
                    .setSoTimeout(PropertiesStorage.getCcsSocketTimeoutMilis()) //
                    .setSoReuseAddress(true) //
                    .setConnectTimeout(PropertiesStorage.getCcsConnectionTimeoutMilis()) //
                    // Determines the number of I/O dispatch threads to be used by the I/O reactor.
                    .setIoThreadCount(PropertiesStorage.getCcsDispatchThreadCount()) //
                    .build();

// Create instance of a server - reactor
private static ListeningIOReactor ioReactor = new  DefaultListeningIOReactor(config);

// Listening on specific port
ioReactor.listen(new InetSocketAddress(SERVER_IP, SERVER_PORT));
我想配置mod_reqtimeout、mod_qos和mod_security,以防止“缓慢拒绝服务”。但我不确定如何配置这些参数。 你能帮忙吗