File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
frameworks/Java/smart-socket
src/main/java/org/smartboot/http Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11
11
<maven .compiler.source>21</maven .compiler.source>
12
12
<maven .compiler.target>21</maven .compiler.target>
13
13
<log4j .version>2.17.1</log4j .version>
14
- <smartservlet .version>2.6.1-dev </smartservlet .version>
14
+ <smartservlet .version>2.7 </smartservlet .version>
15
15
<hikaricp .version>5.0.0</hikaricp .version>
16
16
<jsoniter .version>0.9.23</jsoniter .version>
17
17
</properties >
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public static void main(String[] args) {
27
27
// 定义服务器接受的消息类型以及各类消息对应的处理器
28
28
HttpServer bootstrap = new HttpServer ();
29
29
bootstrap .configuration ()
30
- .threadNum (cpuNum )
30
+ .threadNum (cpuNum + 1 )
31
31
.headerLimiter (0 )
32
32
.readBufferSize (1024 * 4 )
33
33
.writeBufferSize (1024 * 4 );
You can’t perform that action at this time.
0 commit comments