Skip to content

Commit cc05c87

Browse files
committed
适配最新版
1 parent 2efa84e commit cc05c87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frameworks/Java/smart-socket/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<maven.compiler.source>21</maven.compiler.source>
1212
<maven.compiler.target>21</maven.compiler.target>
1313
<log4j.version>2.17.1</log4j.version>
14-
<smartservlet.version>2.6.1-dev</smartservlet.version>
14+
<smartservlet.version>2.7</smartservlet.version>
1515
<hikaricp.version>5.0.0</hikaricp.version>
1616
<jsoniter.version>0.9.23</jsoniter.version>
1717
</properties>

frameworks/Java/smart-socket/src/main/java/org/smartboot/http/Bootstrap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void main(String[] args) {
2727
// 定义服务器接受的消息类型以及各类消息对应的处理器
2828
HttpServer bootstrap = new HttpServer();
2929
bootstrap.configuration()
30-
.threadNum(cpuNum)
30+
.threadNum(cpuNum + 1)
3131
.headerLimiter(0)
3232
.readBufferSize(1024 * 4)
3333
.writeBufferSize(1024 * 4);

0 commit comments

Comments
 (0)