diff --git a/frameworks/Java/smart-socket/pom.xml b/frameworks/Java/smart-socket/pom.xml index f98023429a8..26975925ca4 100644 --- a/frameworks/Java/smart-socket/pom.xml +++ b/frameworks/Java/smart-socket/pom.xml @@ -9,7 +9,7 @@ org.smartboot.http smart-http-parent - 1.0.3 + 1.0.4 UTF-8 diff --git a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/Bootstrap.java b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/Bootstrap.java index 9355c42c88a..6db07279677 100755 --- a/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/Bootstrap.java +++ b/frameworks/Java/smart-socket/src/main/java/org/smartboot/http/Bootstrap.java @@ -51,6 +51,7 @@ public static void http(MessageProcessor processor) { // 定义服务器接受的消息类型以及各类消息对应的处理器 AioQuickServer server = new AioQuickServer<>(8080, new HttpRequestProtocol(), processor); server.setWriteQueueSize(2); + server.setFaster(true); server.setReadBufferSize(256); server.setThreadNum((int) (Runtime.getRuntime().availableProcessors() * 1.5)); try {