Browse Source

chore: add missed changes

JimMoen 3 years ago
parent
commit
a3196f007a
2 changed files with 9 additions and 0 deletions
  1. 5 0
      changes/v5.0.10-en.md
  2. 4 0
      changes/v5.0.10-zh.md

+ 5 - 0
changes/v5.0.10-en.md

@@ -24,6 +24,11 @@
 
 - Binary packages for all platforms are now built on Erlang/OTP version 24.3.4.2 [#9293](https://github.com/emqx/emqx/pull/9293).
 
+- Added more `client.disconnected` events (and counter bumps) [#9327](https://github.com/emqx/emqx/pull/9327).
+  Prior to this change, the `client.disconnected` event (and counter bump) is triggered when a client
+  performs a 'normal' disconnect, or is 'kicked' by system admin, but NOT triggered when a
+  stale connection had to be 'discarded' (for clean session) or 'takeovered' (for non-clean session) by new connection.
+
 ## Bug fixes
 
 - Fix error log message when `mechanism` is missing in authentication config [#8924](https://github.com/emqx/emqx/pull/8924).

+ 4 - 0
changes/v5.0.10-zh.md

@@ -23,6 +23,10 @@
 
 - 为所有平台的二进制包升级了 Erlang/OTP 到 24.3.4.2 [#9293](https://github.com/emqx/emqx/pull/9293)。
 
+- 增加更多类型的 `client.disconnected` 事件(及计数器触发) [#9327](https://github.com/emqx/emqx/pull/9327)。
+  此前,`client.disconnected` 事件及计数器仅会在客户端正常断开连接或客户端被系统管理员踢出时触发,
+  但不会在旧 session 被新连接废弃时 (clean_session = true) ,或旧 session 被新连接接管时 (clean_session = false) 被触发。
+
 ## Bug fixes
 
 - 优化认认证配置中 `mechanism` 字段缺失情况下的错误日志 [#8924](https://github.com/emqx/emqx/pull/8924)。