|
@@ -22,6 +22,7 @@ public class Bootstrap {
|
|
|
static byte[] body = "Hello, World!".getBytes();
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
+ System.setProperty("sun.nio.ch.maxCompletionHandlersOnStack","0");
|
|
|
HttpMessageProcessor processor = new HttpMessageProcessor(System.getProperty("webapps.dir", "./"));
|
|
|
processor.route("/plaintext", new HttpHandle() {
|
|
|
|
|
@@ -52,7 +53,6 @@ public class Bootstrap {
|
|
|
AioQuickServer<Http11Request> server = new AioQuickServer<>(8080, new HttpRequestProtocol(), processor);
|
|
|
server.setWriteQueueSize(1024);
|
|
|
server.setReadBufferSize(1024*4);
|
|
|
- server.setFairIO(true);
|
|
|
// server.setThreadNum((int) (Runtime.getRuntime().availableProcessors() * 2));
|
|
|
try {
|
|
|
server.start();
|