Skip to content

Commit

Permalink
update smart-socket to 1.4.1.rc-2 (#4704)
Browse files Browse the repository at this point in the history
* update dockerfile

* update to 1.0.10-SNAPSHOT

* update to 1.0.10-beta

* fix bug

* update to 1.0.10.1119-beta

* update to 1.0.10.1128-beta

* 还原代码

* update to 1.0.10.1206-beta

* update to 1.0.10.1209-beta

* update to 1.0.10.1214-beta

* 增加缓冲区

* update to 1.0.10-beta

* update to 1.0.10.1231-beta

* update to 1.0.10.0106-beta

* update to 1.0.0107-beta

* update to 1.0.10.0113-beta

* set new pageSize

* update smart-socket to 1.4.0-rc.2

* update to 1.4.0-rc.3

* update smart-socket to 1.4.0-rc.4

* update  to 1.0.10.0221-beta

* update smart-socket to 1.4.0-rc.5

* update maxCompletionHandlersOnStack

* config thread number

* update  to 1.0.10.0324-beta

* update smart-socket to 1.4.0-rc.9

* update smart-socket to 1.4.0-rc.10

* update smart-socket to 1.4.0-rc.11

* update smart-socket to 1.4.0-rc.13

* update smart-socket to 1.4.0

* update smart-socket to 1.4.1-rc.1

* update smart-socket to 1.4.1-rc.2
  • Loading branch information
smthing authored and NateBrady23 committed Apr 28, 2019
1 parent 93f6ad5 commit 2915539
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frameworks/Java/smart-socket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<dependency>
<groupId>org.smartboot.socket</groupId>
<artifactId>aio-core</artifactId>
<version>1.4.1.rc-1</version>
<version>1.4.1.rc-2</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ public static void http(MessageProcessor<Http11Request> processor) {
// 定义服务器接受的消息类型以及各类消息对应的处理器
AioQuickServer<Http11Request> server = new AioQuickServer<>(8080, new HttpRequestProtocol(), processor);
server.setReadBufferSize(1024 * 4);
server.setBossThreadNum(Runtime.getRuntime().availableProcessors());
server.setThreadNum(Runtime.getRuntime().availableProcessors() >> 1);
// server.setBossShareToWorkerThreadNum(0);
// server.setBossThreadNum(Runtime.getRuntime().availableProcessors());
// server.setWorkerThreadNum(Runtime.getRuntime().availableProcessors());
// server.setWorkerThreadNum(4);
try {
server.start();
} catch (IOException e) {
Expand Down

0 comments on commit 2915539

Please sign in to comment.