Skip to content

Commit

Permalink
🐳 21.5
Browse files Browse the repository at this point in the history
  • Loading branch information
iohao committed Apr 16, 2024
1 parent 5d48d20 commit 17671ad
Show file tree
Hide file tree
Showing 23 changed files with 137 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ ioGame 是轻量级的网络编程框架,**不依赖任何第三方**中间件
<dependency>
<groupId>com.iohao.game</groupId>
<artifactId>run-one-netty</artifactId>
<version>21.4</version>
<version>21.5</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion common/common-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public final class IoGameVersion {
public static String a;

static {
String internalVersion = "<version>21.4</version>";
String internalVersion = "<version>21.5</version>";

VERSION = internalVersion
.replace("<version>", "")
Expand Down
2 changes: 1 addition & 1 deletion common/common-kit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion common/common-micro-kit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion common/common-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
115 changes: 115 additions & 0 deletions doc_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,121 @@ https://www.yuque.com/iohao/game/ab15oe



#### 2024-03-28 - v21.4

https://github.com/iohao/ioGame/releases/tag/21.4




[ #253](https://github.com/iohao/ioGame/issues/253)

> CreateRoomInfo.createUserId int --> long


ExecutorRegion

> 1. 优化默认创建策略
> 2. 优化 ExecutorRegionKit,SimpleThreadExecutorRegion 默认使用全局单例,减少对象的创建。


proto 文档生成时,默认指定为 StandardCharsets.UTF_8

> javaProjectBuilder.setEncoding(StandardCharsets.UTF_8.name());


玩家下线时,使用自身所关联的线程处理。

> SocketUserSessions removeUserSession
```java
public void removeUserSession(SocketUserSession userSession) {

if (Objects.isNull(userSession)) {
return;
}

long userId = userSession.getUserId();
ExecutorRegionKit.getSimpleThreadExecutor(userId)
.executeTry(() -> internalRemoveUserSession(userSession));
}
```



#### 2024-03-11 - v21.3

https://github.com/game-town/ioGame/releases/tag/21.3



[#250](https://github.com/game-town/ioGame/issues/250) 游戏对外服 - 自定义编解码 - WebSocketMicroBootstrapFlow



文档 [游戏对外服-自定义编解码 (yuque.com)](https://www.yuque.com/iohao/game/ea6geg#Z8pbL)



重写 WebSocketMicroBootstrapFlow createExternalCodec 方法,用于创建开发者自定义的编解码,其他配置则使用 pipelineCodec 中的默认配置。

```java
DefaultExternalServerBuilder builder = ...;

builder.setting().setMicroBootstrapFlow(new WebSocketMicroBootstrapFlow() {
@Override
protected MessageToMessageCodec<BinaryWebSocketFrame, BarMessage> createExternalCodec() {
// 开发者自定义的编解码实现类。
return new YourWsExternalCodec();
}
});
```



以下展示的是 WebSocketMicroBootstrapFlow pipelineCodec 相关代码

```java
public class WebSocketMicroBootstrapFlow extends SocketMicroBootstrapFlow {
... 省略部分代码
@Override
public void pipelineCodec(PipelineContext context) {
// 添加 http 相关 handler
this.httpHandler(context);

// 建立连接前的验证 handler
this.verifyHandler(context);

// 添加 websocket 相关 handler
this.websocketHandler(context);

// websocket 编解码
var externalCodec = this.createExternalCodec();
context.addLast("codec", externalCodec);
}

@Override
protected MessageToMessageCodec<BinaryWebSocketFrame, BarMessage> createExternalCodec() {
// createExternalCodec 相当于一个钩子方法。
return new WebSocketExternalCodec();
}
};
```



[#249](https://github.com/game-town/ioGame/issues/249)
将集群启动顺序放到 Broker(游戏网关)之后。

集群增减和逻辑服 Connect 增减使用同一线程处理。

IoGameGlobalConfig brokerClusterLog 集群相关日志不开启。



#### 2024-02-22 - v21.2

修复版本号显示错误问题(该版本没有功能上的更新与修改,不升级也不影响)
Expand Down
2 changes: 1 addition & 1 deletion external/external-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion external/external-netty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion net-bolt/bolt-broker-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion net-bolt/bolt-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion net-bolt/bolt-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.4</version>
<version>21.5</version>
<name>ioGame</name>
<description>
生产资料公有制。
Expand Down
2 changes: 1 addition & 1 deletion run-one/run-one-netty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion widget/light-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion widget/light-domain-event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion widget/light-game-room/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion widget/light-jprotobuf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion widget/light-profile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion widget/light-redis-lock-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion widget/light-redis-lock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion widget/light-timer-task/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>ioGame</artifactId>
<groupId>com.iohao.game</groupId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion widget/other-tool/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.iohao.game</groupId>
<artifactId>ioGame</artifactId>
<version>21.4</version>
<version>21.5</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down

0 comments on commit 17671ad

Please sign in to comment.