Skip to content

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

@zhangbei59

Description

@zhangbei59

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,请问是什么原因,测试代码和工具版本的原因吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions