emqx / emqx/MQTT-Client-Examples

使用mqttx 1.13版本以及go测试代码测试tls链接报错

Open
#206 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1k
Forks
718
PR merge metrics
No merged PRs in 30d

Description

emqx 版本:6.1.0
部署方式:容器
架构:haproxy 8883端口 --->emqx 1883,自己购买的的证书cat合并成的haproxy证书。

报错内容如下:

2026-02-07T07:54:59.213627+00:00 [info] msg: terminate, peername: 10.0.0.2:59314, reason: {shutdown,emsgsize}
2026-02-07T07:55:32.218116+00:00 [debug] tag: SOCKET, msg: emqx_connection_terminated, peername: 10.0.0.2:31880, reason: {shutdown,emsgsize}
2026-02-07T07:55:32.218293+00:00 [info] msg: terminate, peername: 10.0.0.2:31880, reason: {shutdown,emsgsize}
2026-02-07T07:55:32.220897+00:00 [debug] tag: SOCKET, msg: emqx_connection_terminated, peername: 10.0.0.2:31886, reason: {shutdown,emsgsize}
2026-02-07T07:55:32.221135+00:00 [info] msg: terminate, peername: 10.0.0.2:31886, reason: {shutdown,emsgsize}

使用的haproxy转发8883到服务的1883,haproxy的的日志正常,后端1883服务收到debug报错如上,我使用的是我们自己购买的CA证书
测试界面和命令如下:
图中的message是我直连1883测试ok的信息,非8883发送的信息。
Image

go代码:

Image

haproxy日志:

Image

我部署的是容器版本6.1.0,请问是什么原因,测试代码和工具版本的原因吗?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.