From a3196f007a6b4f46a9a56ff4b9a6ba582dda8137 Mon Sep 17 00:00:00 2001 From: JimMoen Date: Mon, 12 Dec 2022 14:21:02 +0800 Subject: [PATCH] chore: add missed changes --- changes/v5.0.10-en.md | 5 +++++ changes/v5.0.10-zh.md | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/changes/v5.0.10-en.md b/changes/v5.0.10-en.md index 42c3f6610..b91ec30f7 100644 --- a/changes/v5.0.10-en.md +++ b/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). diff --git a/changes/v5.0.10-zh.md b/changes/v5.0.10-zh.md index bbaa758b3..92cc1ccab 100644 --- a/changes/v5.0.10-zh.md +++ b/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)。